Will the linked list's tail with a random pointer point to a valid list?


  • 0
    S

    In this situation, the solution by inserting the new nodes between two original nodes don't work.

    The problem becomes a graph copying problem.


  • 0

    What do you mean with valid list, and why would that solution not work?


Log in to reply
 

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