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.
dude gotta say this sol 's fire! Made a version of it just after seeing it, good job!
Agreed, more of a Math problem than a programming problem. The implementation is so easy if you know the aliquot sum and its number theory.
no evidence given, closing
Range applies to the full time span indicated, so if the fastest time was 1:02:03 and the slowest time was 3:05:07 then the time range is 2:03:04.
If the fastest time was 1:30:40 and the slowest time was 2:20:30 then the time range is 0:49:50.
In real world terms the range question is asking "how long did the person at the finish line with the stopwatch have to wait, between the moment the fastest runner finished, and the moment the slowest runner finished? How much time passed between the winner finishing and the last person finishing?"
You have to do time math on the entire period of time, not just the hours/minutes/seconds components separately
fixed. your solution fails both the random and fixed tests consistently now
It seems to me that 6 kata is a good place for this task, there is nothing complicated here, and the solution lies on the surface
duplicate issue.
the kata is not asking you for an index, but for a count. you have to figure out how many
red
s could potentially be your friends, keeping in mind that yourred
friend has 2blue
friends ...You've confused yourself a little with the description. "Digits" are the symbols used to represent a number, and "consecutive digits" are therefore digits which are next to each other when you write a number down without respect to their value.
In the number
82735
,8
and2
are "consecutive digits" as are2
and7
, and so on, because they are next to each other.What you're thinking about in your first example are "consecutive numbers", numbers which follow each other by value rather than by position. Reread the description with this distinction in mind; it does not talk about "consecutive numbers" at all.
Very glad to hear. Thank you so much for this feedback. Have a good day theprotagonist!!!
Thanks!
that's why we removed that test ._.
Done, along with many other improvements in this fork. Please take a look if you have a moment, thank you.
the test with NULL should rather be removed, it's not present in other languages as far as i can see
I have added a thorough comment to the solution set-up.
Loading more items...