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.
That's a way more elegant method of checking the characters than I did - thanks for teaching me something new!
I like this solution! :D
Wow thank you. I have no idea how but it works now!
You did not consider the way back home in the price and you also calculate the price of a full tank when distance is 0. What if distance is 0 but there is still gas in the tank? ;-)
I tried changing it to multiply distance by 2 (in order to account for the way back) but then it fails even more of the tests!
This comment is hidden because it contains spoiler information about the solution
If you want to console.log before an error occurs yoou should console.log. . . before this error may happen.
I put a line in your code :
. . . and got this log :
When you try to use
.reverse
(an array method) onAda: 44
(a string) an error happens !Don't give up poor po !
; ) )
PS: nice new nick name !
This comment is hidden because it contains spoiler information about the solution
how do i delete a comment?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
In random cases :
size
andplayers
arguments. egxxx = new HallOfFame(3,[["ZZ",12],["xxx",9],["YyY",13]])
Then size of its length is tested (should be equal to 'size' )
list
of the tested Hall is compared to expected list(ie list of same size but with only avaible players, sorted as required)
Does it help ?
; ) )
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Loading more items...