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 comment is hidden because it contains spoiler information about the solution
Synchronized is redundant, commited my mistake.
It's about 30% slower than non-synchronized version.
general advise: you shoudl really read those things:
My point is: even if your kata has what's required, the test suite is "sub-par": no describe/it blocks, assertions at the main level. Those are pretty bad habits you'll need to leave if you wanna author others kata. ;)
cheers
Thanks, put
Test.assertEquals()
inside a condition, works fine.again, not with chai/node 10, or if properly put inside a condition (designed for the purpose, ofc):
If I put
Test.assertEquals()
put inside a condition I getMax Buffer Size Reached
not if you use it:
Test.assertEquals() will output a billion messages affecting time of execution
Added random tests
it's exactly the same than mine.......
Also, why throw error when you can just Test.assertEquals()?
No random tests.
The thing is should this solution pass?
ok
Your solution is just a little bit slower than the fastest one, so it should pass.
Loading more items...