-
Notifications
You must be signed in to change notification settings - Fork 0
arrays exercises solved #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
| max = array.first | ||
| array.each { |el| max = el if el > max } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
хотя бы в функцию вынести, на первый взгляд не сразу понял зачем это
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
запушил новый коммит с исправлениями
вы это имели ввиду?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
да, пойдет. и давай на ты, если не против
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
окей, давай на ты
test/exercise/arrays/solution.rb
Outdated
| def search(_array, _query) | ||
| 0 | ||
| def search(array, query) | ||
| binnary_search(array, query, 0, array.size) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
binary с одной n
No description provided.