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.
This comment is hidden because it contains spoiler information about the solution
I have everything done except this, not sure what other function to use...I don't want to have to manually extract the month number from the date but might have to...
My expected and got results were the exact same. I didn't bother to read the difference of the rest though. Round I couldn't solve, so I did it myself and just threw the word in a comment.
Descending by length is obvious to me, but I have no idea what it means by content.
This comment is hidden because it contains spoiler information about the solution
Can you provide an example with the input value, your value and the expected one? Also mention the language?
The tests don't like my ordering even though my values are correct. I will not be finishing it for this reason.
Was so confusing the first day I looked at it. Once you understand it it's very easy.
Could we add a tag for well-written kata? I've seen so many poorly explained ones that it's definitely affected how many I've done.
Hi, thanks for answering. I had a bunch of tuples as my output. The system disregarded all tuples but the first one which "sent me a confusing message" I was wrong with letter counts. After I stuffed all tuples into one list the system got happy. Thanks again. Everything is fine now.
Hi, I'm not sure if I understand your problem. Paste here your solution and mark it as a spoiler. Regards, suic
The solution in my 2.7 console returns all five tuples for, say, 'abracadabra', but basic test returns just the first one. I am puzzled.
Thanks for reporting this and the valuable input. I've learned something new.
I added the "212" case to example and fixed tests, fixed the random input generator and added 10 digits-only-text random tests.
Regards, suic
The object({}) will automatically sort the key-value pair when it's keys are all zeros or positive integers.
So...
In this way,you can't get tuples in order of appearance.
My solution make some change.
https://www.codewars.com/kata/reviews/5c65c4373324bd000110efd0/groups/5c662996845aab0001aeda29
It can get correct result :)
https://www.codewars.com/kata/reviews/5c65c4373324bd000110efd0/groups/5c665334903fdc0001499f3d
Like this.
try "212"
Loading more items...