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.
Hmm, arr is a pointer to a const integer, good use of arr here.
Well spotted. Fixed. Thanks!
nitpick: minor typo in the description.
Read the How it worked part of the kata's description, you can't change horses or hand over the mail bag in the middle of nowhere, only at stations.
And that's how each rider doesn't ride more than 100 miles each in that case.
Clever use of do while in this Kata !
consider the below array (one of the random test)
The total sum is 1724 of the entire array
each rider is capable to travel till 100 km
based on that info:
17 * 100 = 1700 (17 riders)
24 = 1 rider
total 18 riders can cover the distance mentioned in array.
But the test says it requries 23 riders, how is it calculated ?
can someone help me ? I'm not sure where I'm getting it wrong.
my thoughts exactly!
Approved. Thanks!
python new test frameworks
Nice code , but asprintf is not part of the standart library of C lenguage, saing that, can give sa¡ome issues on windows.
You cheeky...
Thanks! Yeah, I lately can't be bothered too much about the includes, the linker solves it, but you're right.
Nice. This is one of those rare cases where I think the shortest code golf solution was also the best and most efficient one. OTOH including <string.h> might have been better...
Another great kata from you. Thanks, DM!
Loading more items...