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.
You cannot delete a comment when a reply has been made to it.
For your code, you misinterpret the expected result as the input. The input is given in the form of 2-dimensional array, each having a name and score respectively -->
[[name1, score1], [name2, score2]...]
. You have to define alist
property that can retrieve a list in the form of[name1: score1, name2: score2, ...]
sorted based on the given criteria.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? ;-)
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
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
This comment is hidden because it contains spoiler information about the solution