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.
here the complexity is K*N(K-size signature,N-size result)
you can replace it with something like K+N
here the complexity is K*N(K-size signature,N-size result)
you can replace it with something like K+N
( std::count (seq.begin(), seq.end(), elem) > 0? true: false) can change std::count (seq.begin(), seq.end(), elem) because 0=false any nonzero number =true
this days i have completed 400 problem in CF
you are right
i was noob in problem solving and i was not have right understanding to recursion
Nice one
I think if we give a negative number in function in the result program call unlimited recursion.
Mind... boggled
I'm sorry! First, I combined all the tests into one. Secondly, my mistake was that I did not understand that it was necessary to reduce numbers when dividing integers.
The length of my code is 100 lines. I was surprised when I saw a short solution from other people(as always). A good kata, thanks!
I tried your code: your printing is such that it is impossible for you to identify each test; there is no test with
What is above is the concatenation of the first three basic test in "ATTEMPT".
Moreover notice that 34 people passed the kotlin kata. If there were errors somebody would have seen them before you.
Your code is wrong somewhere; sorry. Cheers!
are you mutating the input?
Kata does not work correctly in Kotlin. Example,
a = arrayOf(intArrayOf(1, 2), intArrayOf(2, 9), intArrayOf(3, 18), intArrayOf(4, 24), intArrayOf(6, 48), intArrayOf(1, 2), intArrayOf(1, 3), intArrayOf(1, 4), intArrayOf(1, 3), intArrayOf(5, 3))
Result should be [307, 72]
But in kata [6, 3]
The author, please fix it. Can't complete kata!
This comment is hidden because it contains spoiler information about the solution
Issue closed: see post by @kazk at https://github.com/codewars/raku-tap2codewars/issues/7.
thanks
Loading more items...