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.
One way to reach '5' is by adding
5 + 0
. In this case, the largest number in the group is '5', and the smallest is '0'. Therefore, the range is:5 - 0 = 5
.you have [3, 2] in enum(5), 3 * 2 = 6, because of that prod(5) = [1, 2, 3, 4, 5, 6]
've find the answer below, thx for good review task
explain me, how did you get this prod(5) -> [1,2,3,4,5,6]
from this enum(5) -> [[5],[4,1],[3,2],[3,1,1],[2,2,1],[2,1,1,1],[1,1,1,1,1]]
you should have taken this prod(5) -> [1,2,3,4,5]
Sorry, there are no errors in the tests.
Range : difference between the highest and lowest values.
how can be 5 range 5, when should be the 4?
enum(4) -> [[4],[3,1],[2,2],[2,1,1],[1,1,1,1]] and
enum(5) -> [[5],[4,1],[3,2],[3,1,1],[2,2,1],[2,1,1,1],[1,1,1,1,1]].
да я в первый раз сделал через int, через long long пытался пропустить, а там цифры длиннее, ля я с этого пригорел
Because the man was given directions to go from one point to another.
If he just stays still people will think he hasn't reached his destination.
ofc, i am not writting it for you, my friend-gamburger.
it is not actually translatable, so you have to learn russian to understand, sorry.
I don't understand. This website uses English. You may use a translator.
для гениев, вроде меня:
while (**hello)
вот эта xyйня бляTь, при заходе за пределы массива, не завершает цикл, а уходит в ошибку : SIGSEGV (11). Invalid memory access.
Check Solutions, O(n) is possible.
Task that do not allow you to chose an O(n) algorithm because you have to keep directions in order. So you have to go for O(n^2), something that you would definitly avoid IRL!
eбyчий гaмбypгeр, я пoл дHя прoтpaхaлся, ниxeра не pабoтаeт
Loading more items...