What's the point of not using reverse?


  • 0
    C

    reverse link requires O(1)
    Using stack, hash even deep copy an extra list will take O(n), and it's not modifying list.
    Then what's the point of this questions?


Log in to reply
 

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