What is the answer for this question if duration==1?

  • 0

    I have one more check in the code as

         return ts.size();

    and this make my code failed in the last test case (my output 10000, correct answer 9926).

    Anybody can help me figure out why I'm wrong here?


Log in to reply

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