can anyone explain the explanation to me (i didnt quite got it)
their example input was "01|15|59, 1|47|6, 01|17|20, 1|32|34, 2|3|17" and answer is "Range: 00|47|18 Average: 01|35|15 Median: 01|32|34"
now when they say average does it mean average for every seconds,hour,min ex for min (15+47+17+32+2)/5 so average for min=56.5 but here its 35 (Average: 01|35|15)
for median its the middle term of the set so for median of minute it should be 17 becoz
arranging in ascending order the minutes=[3 15 17 32 47] so the middle term for minute is 17 not 32
the average is for the total amount of time; consider the h/m/s as total seconds
same question could you pls tell me if someone has told you the answer ?
thanks in advance
can anyone explain the explanation to me (i didnt quite got it)
their example input was "01|15|59, 1|47|6, 01|17|20, 1|32|34, 2|3|17" and answer is "Range: 00|47|18 Average: 01|35|15 Median: 01|32|34"
now when they say average does it mean average for every seconds,hour,min ex for min (15+47+17+32+2)/5 so average for min=56.5 but here its 35 (Average: 01|35|15)
for median its the middle term of the set so for median of minute it should be 17 becoz
arranging in ascending order the minutes=[3 15 17 32 47] so the middle term for minute is 17 not 32
(Median: 01|32|34")
Good advice. Try it! The formula helped to avoid the cycle.
if you are having problem search the maths formula for finding nth term of triangular series
and use that