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.
In real time production code is this recommneded ? since it's not a part of C standard.
Hmm, arr is a pointer to a const integer, good use of arr here.
It's crazy how people are good in using bitwise operators.
should have given you a warning for not including math.h library file.
plus stdio.h file is not required here as you are not performing any IO.
Amazing Kata !
True, excellent Kata, your hint should be included in the description.
Thanks
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 !
This comment is hidden because it contains spoiler information about the solution
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.
Very good kata !, should be 7 Kyu.
you need to add one more example, it's unclear what's the expecation here.
In music theory, this is called an inverse interval.
is this some mathematical formula ? what's it called ?
I want to know what made all you guys use a bitwise operator to get the answer ?
is it through expirience ? how one decides all this ?
Loading more items...