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
This comment is hidden because it contains spoiler information about the solution
Random tests should probably not do 100 tests when the domain they are being tested over is 16 values.
This comment is hidden because it contains spoiler information about the solution
Thanks, @hobovsky. Should be fixed now!
Random generator should not be re-seeded on every iteration, because it greatly degrades distribution and causes many duplicates.
Golang translation ready, please approve :-) https://www.codewars.com/kumite/63bb2780a78e05001708b140?sel=63bb2780a78e05001708b140
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I get where you are coming from...but could you please elaborate on what principles of a pure function it violates?
I may be missing something - but doesn't it comply with not having side effects (i.e. nothing mutated), and it would produce the same result every time given the same inputs? Is it because of the 'lines' param being a reference variable, which could be changed outside of the method?
This comment is hidden because it contains spoiler information about the solution