Simple Approach

  • 0

    Just check given time duration exceeds between between every two times given in series.
    if exceeding, then difference between two time will add up answer
    otherwise, duration will add to answer.

Log in to reply

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.