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.
Well done👌🏻
🙌 Thanks to the Codewars community for the "Help your fellow warrior!" kata!
A simple yet insightful exercise in breaking down a numeric goal into tiered units.
It was a great way to practice clean conditional logic and basic arithmetic — appreciate it!
Yes
Those latter 2 are already in deduplication process, and the idea might be a subset of this, but it is not related to the concept of
kyu ranking
. Also there are a bunch of katas aboutdivmod
/ subset tasks involving the concept, so I guess it is not ideal to deduplicate them (Same goes to the trivial string / list manipulation katas ...)Not the one I was thinking of either, though that one is a (n exact?) dupe of this one
I just went and found the one I was thinking of, which is this, and this is the myjinxin one I was thinking of.
Ok I guess it is this one (though not myjinxin's) then which makes this too trivial
First argument — the starting index, Second argument — the ending index (not included in the result)
why is it 1 and not 0, -1?
Neither of those are the dupes I was thinking of, they were called like "minimum steps to a number" or something.
OMG, thank you. I spent more time figuring this out than the actual kata!
maked
Translation Dart
Use the spoiler icon your post is visible on no the main page.
There's markup for displaying code.
markdown
This comment is hidden because it contains spoiler information about the solution
Greed is good
myjinxin's
Dupe of a bunch of similar kata (there's at least one myjinxin one which has an identical solution to this)
Loading more items...