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.
Haskell translation
Quite tricky kata although it doesn't seem at first.
goal
is the target sum.C++ Translation
nice bro, it was a more harder 7 kyu ngl
The message is telling you your solution returned 2 for that input. The correct answer is, indeed, 1.
I really not understand where is the mistake, is only 1 change from negative to positive arr[3-4]
Input: [-2,-2,-5,-4,5,2,0,6,0]
Assertion: expected 2 to equal 1
I'm a beginner. I had to spend 2 hours on this kata, it was hell for me, but I'm glad I got through it.
LC translation
C# Translation.
I thought this kata is very hard to be 7kyu. I finish it but wasn't so easy
I don't see anywhere in the description that says
0
is considered positive. However, it may be implicitly implied otherwise to be non-negative... unless you intend to employ-0
. So, the sign must change anyway if a negative number goes to a zero.This comment is hidden because it contains spoiler information about the solution
Loading more items...