Skip to content

FizzBuzz, SumOfTwo#103

Open
hddskull wants to merge 2 commits intoAndroid-Developer-Basic:masterfrom
hddskull:master
Open

FizzBuzz, SumOfTwo#103
hddskull wants to merge 2 commits intoAndroid-Developer-Basic:masterfrom
hddskull:master

Conversation

@hddskull
Copy link
Copy Markdown

No description provided.

return resArr
}

for (i in 0..n) {
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.

@hddskull, обратите внимание на конструктор массива в пятой строке. Фигурные скобки - это функция, которая будет выполняться для каждого элемента. Мы можем перенести вычисление фицбаза в эту функцию и сделать все за один проход ;)

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