• + 5 comments

    Is this supposed to be a programming challenge or a reading challenge? I have no idea what's being asked of me on this one...

    "As soon as array indices are too large" <-- what array? Why would indices ever been too large?

    "the number t_i appears consequently c_i times in sequence" <-- you mean 'consecutively'?

    "Blocks should be listed in the order they appear in the sequence" <-- there is no specified order for the sequence...

    "such as l_{i+1} = r_i + 1" <-- you mean 'such that'? Otherwise it's not the most insightful example...

    Finally, it would be appreciated if the sample input didn't generate an output of only 1's...