Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Since 3.10 you can use
match
instead ofif
Yep
Due to the strange description, I had to unlock the solution. Although it would be enough to say that there can be more petals than sayings.
Вся проблема в описании. Достаточно было бы сказать, что лепестков может быть больше, чем фраз.
The problem is not in the complexity of the kata, but in the stupid description. Nothing is said about the fact that there can be more petals than sayings.
The description just sucks! With 15 years of experience in php development, I did not understand what was meant here. So please add more test cases to make this kata easier to understand.
Это надо иметь особый тип мышления, чтобы додуматься до такого 🎉
With the
[[],[],[]]
it will throw an error whenret.append(array[n][x])
is triggered. So theif
statement is necessary.Сложная ката! 😭 Осилил, но не без гугла и пошаговой отладки
In 3.10.7
11.8 // 2 -> 5.0
Your bunny wrote
Very nice, but it is better not to use such code in production
This comment is hidden because it contains spoiler information about the solution
Why is this shit here??? Please delete this because my scroll wheel is on fire
The most correct code that is convenient to debug.
Loading more items...