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.
C++ Translation
This comment is hidden because it contains spoiler information about the solution
If you try to solve it with reg exp, you have to keep in mind .match method return either non empty array of matches or null. So you need to not just match (think for other methods for null check)
This comment is hidden because it contains spoiler information about the solution
python new test framework is required. updated in this fork
now it already does, feel free to use it
unbelievable code wouldnt work on random test cases because i put console.log(arr) to see what wasnt working and therefore it would time out and say max buffer size reached. Beyond frustrating
Approved
Instructions say numbers shouldn't be negative or zero. So, if you had 2,4,-1 and the if statement isn't there to for int >=0 how does this solution account for it?
Scala translation
That is perfect solution!
This is an 8kyu kata, enforcement of regex is not only inappropriate with the level of ranking, but also too late as it will invalidate all solutions
very elegant!
Floating point error in random tests:
Reference solution is completely wrong at every part of the task:
Buy 1,230 bricks for £225.86
for 1230 bricks, when the proper return value should beBuy 2,000 bricks for £211.98
Loading more items...