Skip to content
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

Готовые задания #1

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Open

Готовые задания #1

wants to merge 18 commits into from

Conversation

VadimGorbachevsky
Copy link
Owner

No description provided.

…ссивов с баннерами. 2. Она является хэш-массивом с ключами - названиями этих массивов и значениями - AlreadyOut[] каждого из них. Т.к. эта ситуация близка к реальной, принято решение использованное решение не менять. Приводить, однако, переменную к виду хэш-массива в данном случае нецелесообразно
@isqad
Copy link

isqad commented Mar 24, 2015

Давай так, переоформи пожалуйста по вот этому стилю https://github.com/bbatsov/ruby-style-guide
и вот, хороший инструмент для проверки себя rubocop https://github.com/bbatsov/rubocop

def array_uniq_hash(*arrays)
full_array = []
arrays.each{ |item| full_array += item }
full_array.flatten!
Copy link

Choose a reason for hiding this comment

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

так может сразу делать full_array = arrays.flatten без промежуточных циклов?

Copy link
Owner Author

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.

None yet

2 participants