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.
For some random tests, the expected length seems to be off by one?
['94366 - KzQgybHa - 51.7 43.2 56.2 36.9 46.0', '61746 - jnsGvIel - 53.4 59.2 14.0 34.4', '96362 - EDFTyzLS - 43.6 58.3 85.5', '34877 - yVLBMuTK - 59.0 25.0 60.1', '28164 - xtHvMYWi - 18.3 69.6 98.4 34.8', '29873 - DopOhJfi - 18.2 76.4 29.1 10.2', '67638 - nOXGIqOs - 55.0 89.0 82.6', '58755 - IlLRxYYZ - 94.6 79.2 40.5', '67638 - IETAxXyI - 13.1 83.4 73.2 87.4 13.3']
The attempt length (9) does not equal the answer length (8)
Yet, I'm pretty sure that the list has 9 inputs?
I don;t see it either now.
I don't see any colored text in the description.. perhaps this issue has already been fixed?
Hey I learned this today too! 3 years later though...
Thanks (◕﹏◕✿)
Great Kata! Hope to see it in approved
looks good to me
got it
I would still consider changing this:
Remove the log, and add the message you are logging in the "it", so it's part of the test case.
Okay I believe I followed the proposed solution of "unique" scores by comparing the values formatted to one decimal points, if there are same values I create a new list for testing, else I continue.
As for the i, I had it just for my logging purposes, so I removed it.
Let me know if this satisfies the criteria that was originally posted.
Also about the ordering, the problem is you get 58.21999999999999 while we get 58.22. If 2 students have silimar scores like this, your order might be student 1 -> student 2, while ours is student 2 -> student 1. A secondary key won't change this. The problem is how the mean gets calculated differs between your solution and ours, it's not clearly specififed how to get the mean, and the chosen implementation changes the outcome.
Not sure how relevant "i" is. Perhaps you can display "students" in the "it".
So I ran some tests, and it seems that there isn't secondary sorting based on id:
If you want, I can add secondary sorting. As it is now, my solution (the attempt above) only sorts based on grade and keeps it in the same order rather than sorting based on alphanumerical characters in the id.
As for the other notes you left, I believe I implemented them (I learned more stuff on test cases!).
EDIT: I should have refreshed before submitting... whoops >u<
Your proposed solution of "unique" scores seems the easier way out of this, without changing the spirit of the kata :)
yeah, that's another way. But there you find the need for the secondary key again, I believe.
Loading more items...