Why are some shortest time-cost solutions obviously not the best?


  • 0
    A

    Each time my code is accepted, I will check how many solutions my solution can beat on time cost, and read the sample of the best time cost solution. I always find that the sample is not the best, and some obviously better solutions cost more time, it confuses me a lot.


Log in to reply
 

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