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.
Maybe it shoud be done other way around? Check for valid numbers insead of checking if its false?
When you modify inputs, you really deserve everything you get.
But, fixed. Try again. Now please stop modifying inputs. It's a bad, bad, bad habit to get into.
This comment is hidden because it contains spoiler information about the solution
random tests are subject to input modification troubles
Log
[ 16, 'Circle', 'Victoria', 'Hammersmith & City', 'Bakerloo' ]
Expected: '£0.00', instead got: '£11.10'
Log
[ 39, 'Piccadilly' ]
Expected: '£0.00', instead got: '£3.90'
Log
[ 'Circle', 167, 'Metropolitan', 'Jubilee', 'District' ]
Expected: '£0.00', instead got: '£11.10'
Log
[ 139, 130, 169, 'District', 'Bakerloo' ]
Expected: '£0.00', instead got: '£7.80'
Nice structure, but the isPrime is too costly. Rethink the ending condition.
This comment is hidden because it contains spoiler information about the solution