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.
PHP translation.
Big random tests: if this in not a performance kata, array size up to 1000 is sufficient.
Small random tests: array size should be smaller (e.g. 0–30). The idea is: if something goes wring, one can insert print statements in the main loop (e.g. current step, partial score, some internal var, ...) and follow follow the algorithm step by step to find the bug.
Math.round(Math.random() * X)
can be replaced with_.random
from lodash.//code here
comment is not needed in hidden tests.function prizeCounter(hoops) { ... }
?