Is it OK? ( just askin )


  • 0
    V

    is this approach incorrect ?

    1. in first iteration copy all next pointers in new list.

    2. now again iterate and for each iteration copy node of original orig->random to mineNew->random
      (if orig->random!=NULL);


Log in to reply
 

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