Skip to content

Голубев Павел Сергеевич#7

Open
Ituub wants to merge 1 commit intocppdevcourse:masterfrom
Ituub:master
Open

Голубев Павел Сергеевич#7
Ituub wants to merge 1 commit intocppdevcourse:masterfrom
Ituub:master

Conversation

@Ituub
Copy link
Copy Markdown

@Ituub Ituub commented Nov 27, 2024

No description provided.

Comment thread src/two-sum.cpp
std::size_t& index1)
{
for (int i = 0; i < ARRAY_SIZE-1; i++){
if (nums[i] >= target) continue;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Я думаю это не совсем верно. Числа в массиве могут быть отрицательными. Жаль я в тестах не предусмотрел такую оптимизацию.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants