Skip to content

Conversation

@the38th
Copy link
Owner

@the38th the38th commented Dec 3, 2020

No description provided.

Comment on lines +5 to +6
max = array.first
array.each { |el| max = el if el > max }

Choose a reason for hiding this comment

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

хотя бы в функцию вынести, на первый взгляд не сразу понял зачем это

Copy link
Owner Author

Choose a reason for hiding this comment

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

запушил новый коммит с исправлениями
вы это имели ввиду?

Choose a reason for hiding this comment

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

да, пойдет. и давай на ты, если не против

Copy link
Owner Author

Choose a reason for hiding this comment

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

окей, давай на ты

def search(_array, _query)
0
def search(array, query)
binnary_search(array, query, 0, array.size)

Choose a reason for hiding this comment

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

binary с одной n

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.

3 participants