DEV Community

Discussion on: Daily Challenge #87 - Pony Express

Collapse
 
peledzohar profile image
Zohar Peled

c#:

int Riders(int[] stations)
{
    var totalSum = stations.Sum();
    return (totalSum / 100) + (totalSum % 100 == 0 ? 0 : 1);
}