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.
I liked how straightforward this kata felt while still making you think a bit about string behavior. It’s one of those tasks that looks tiny at first, but it quietly pushes you to consider efficiency vs simplicity. I appreciate exercises like this because they reinforce paying attention to detail rather than overengineering. Thanks for putting together something short, clean, and surprisingly thought‑provoking.
Thanks for putting this kata together. I liked how straightforward the idea is while still encouraging a clean and careful implementation. It’s the kind of exercise that reinforces attention to edge cases and clarity in small utility functions. Simple on the surface, but a nice reminder that even basic operations benefit from good structure. Appreciated the practice!
Really fun kata, did it without importing modules.
This comment is hidden because it contains spoiler information about the solution
You can do it either with a loop or with the STL helper std::count.
Thanks to the author for this nice and clean kata! Really enjoyed the simplicity and clarity of the task.
Nice approach — readable and gets the job done without overcomplicating things. Appreciate you sharing it!
Thanks for the fun little ride!
Quick, real-world, and just tricky enough to make me pause for a sec. Perfect short brain snack between harder katas .
Perl translation
Please add info how the arguments are passed, in nasm... :)
Minor error: The description says to round up to the first digit, but instead should say to round to one decimal place.
The description should be language agnostic.
In Python,
objectsare different fromdictionaries.(Even though in JS,
objectsare basicallydictionariesin disguise. ;-D)I totally agree with the "longest streak" part.
I mean, why single this one out? Just keep the same format as before:
Each streak is worthAs for the sorting, sort() and sorted() are both STABLE in Python, meaning that if you don't provide any other keys, it would automatically keep the original order in case of a tie.
That's why both yield the same result.
Changed
Loading more items...