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.
Great kata!
Lua translation!
Please, print the input too. Note that those square brackets aren't part of the string, that's JUnit way of highlighting where two strings are different.
Java 8, 11, 17. Pass all basic tests. However, there are weird error with random tests as below. Probably, this is a bug from Codewars.
'expected:<zoHbHQ[FLHG onZ] YG> but was:<zoHbHQ[] YG>'
test comment
CoffeeScript fork fixing issue with undefined in random tests
Yes and that is because I am a numnnutt who forgot I have to make a fork that have to be approved again.
Thanks for the response but I am still experiencing the same problem with your "Random climbers" tests. Here are a few examples of how the leaderboardSort function is being called in your "Random climbers" tests:
leaderboardSort(["QLFc","dpGz","JHcw","JmiG","iWwH","nYYs"], ["JHcw -2","undefined +0","JHcw +5","iWwH +0","JmiG -1","QLFc -2"])
leaderboardSort(["utyVaw","myulen","bUlWIS","KOokh","huBhEP","YMXyLy","TUKhWq","KFIFVC","QoYxLO","MBZZEp","jZawUO","iXCiKI","GuGfWg","FjCOjp","bWgFTr","bLiYTm"], ["YMXyLy -8","FjCOjp +4","myulen +0","KOokh -2","jZawUO +1","utyVaw -12","utyVaw +13","undefined -16","huBhEP -13","bUlWIS +2","YMXyLy +11","bLiYTm -12","utyVaw +13","FjCOjp -2","bLiYTm -3","bLiYTm +2"])
leaderboardSort(["i","R","m","J","V","p","G","F","","Y","B"], [" +3","R -2","undefined -4","J +2","Y +10"," +6","B -9","R +0","R +5","V +6","R +3"])
Correct. I was 1 off on an index.
Fixed!
There appears to be a problem with the CoffeeScript translation. Many of the random tests have "undefined" names passed into the "changes" list argument. Here is an example of how the leaderboardSort function was called with one of the random tests:
leaderboardSort(["E","R","P","s","N","e"], ["undefined -1","undefined -1","N +2","E -4","E +1","N -3"])
Approved
Appoved
Here you are guaranteed to get the unique numbers only in the array.
Approved
python new test framework is required. updated in this fork
Loading more items...