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.
not enough info to reproduce (language ? input ? why is the expected answer wrong ?)
fixed
You don't have any fixed test cases.
Why is it shaped like a butt plug?
Very nice. This is as close to an "objectively correct" solution as I can think. Proper use of relatively obscure built-in methods for which this problem is a textbook use case example.
This comment is hidden because it contains spoiler information about the solution
Great job on finding some hardcore edge cases for the basic tests.
I WOULD be ashamed of having hardcoded the last few tests, IF my solution wasn't already passing all 100 random tests like 90% of the time. Maybe one day I'll get back to it and try to finish a proper solution.
Still, super stoked to have solved my first 1 kyu kata and ranked up to 2 kyu.
Worked like a charm. Thank you!
This is a CTF puzzle.
I'm guessing it's because it's strictly following the principle of single responsibility. Every function does exactly one thing. But idk, doesn't look great to me.
The right hand side of the
||
is only evaluated if the left hand side is zero (a falsy value). So the sorting prioritizescount
(objects with higher count come first), and when bothcount
s are equal, the next condition is used (alphabetical sorting, bysrc
and then bychar
).Was pleasantly surprised that this didn't require any fancy optimization tricks or mathematical simplifications.
This makes me agree with the comment below that this is 6kyu max, but then I remember that most people are freaked out by the big math symbols xD
if the tax is 12% for example (t = 0.12), then what remains is 88% of your earnings. 1-t = 0.88. This is the number by which you should multiply your earnings.
It definitely does not require regex.
1kg makes up 1% of 100kg, but the same 1kg makes up 2% of 50kg.
Loading more items...