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.
is your cube round?
Hey @siebenschlaefer, loooong time no chat, man, - I went back in time just to complete this kata.
Rewrote random tests to generate both expected false and expected true outputs, as well as differences in length.
You can try it yourself in Python REPL (I tried with Python 3.10 locally),
but if given more than 10 it acts like it was only given the first 10, and disregards the rest.
If it's given less than 10, then it'll fail with IndexError.
What happens to this solution if len(n)!=10?
nice
'nnnooooo please goad noooooooo'
This seems to be already resolved.
really great solution
Well Done!
I hadn't thought of using map() that's smart
[resolved]
Great
This and the "#1" solution to this kata (though I think this one is better because it doesn't call sorted() twice) are elegant in their density and use of Python's features. But, as a student, I'm curious: for a professional Python developer is this immediately readable? Would someone read this and see: "Oh, they're taking a string of integers, assigning them weights by summing the individual digits of those numbers, and returning a string of the original integers ordered according to those weights."
Not a jab, an honest question to gauge how intuitive reading this kind of code should be :)
Innovative is the best I can describe it.
Loading more items...