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.
This task I solved at the fifth week of free courses. Lol, it was with bugs. Tests here made me to remove these bugs and learn how to use StringBuilder. At last. It's very convinient.
Made recursive, not effective, but I wanted to practice it.
Really, strong, but good kata.
got 49 here, lol, but still failing random
Tried these two cases, got 47 in first case and 50 in the second. But still failing randomtests
Lol, now failing on random tests 39/15. Without looking Cadane's algorithm, wanna try beat it myself.
Anyway, great kata. Respect to the author!
[ 29, 46, 35, -33, 26, 26, -37, 15, 28, -48 ] here. got 129 from [ 29, 46, 35, -33, 26, 26,], expected 135.
upd: found error. Not the only one, lol. It's fun.
upd2: hurray! At least, it works. Had a lot of fun, really.
You mean indexes?upd: oh, now i'm starting to understand, thanks
This comment is hidden because it contains spoiler information about the solution
I think, no. Just look at the example. Average speed from [45.6, 74.4, 60.0, 60.0, 60.0, 60.0, 60.0, 60.0, 60.0] can't be 74.4
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Lol, why visual studio code returns me other result than debugger on Codewars?
no, too difficult for me. Had to watch and review solutions, to understand how to complete it.
i tried this one on http://pythontutor.com, but that gave me no idea how does it work.
where does it get arguments "a" and "i"? why it has an 'array' at the end of inner return? what it does?
documentation and articles gave me no clues about using .reduce() except summing array elements
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
lol, i dunno how to complete the third condition, 'cause i even don't know what condition should be there.
Loading more items...