Skip to content

arrays exercises solved#1

Open
the38th wants to merge 2 commits intodevelopfrom
arrays
Open

arrays exercises solved#1
the38th wants to merge 2 commits intodevelopfrom
arrays

Conversation

@the38th
Copy link
Copy Markdown
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 }
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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

Copy link
Copy Markdown
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)
Copy link
Copy Markdown

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.

2 participants