SHARE
TWEET

Untitled

a guest Jun 26th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. NewNode = {}
  2. newNode[‘data’] = Head[‘data’]
  3. newNode[‘next’] = None
  4. ptr = Head
  5. count = 0
  6. while count < 3 and ptr != None:  
  7.    ptr = ptr[‘next’]
  8.    count = count + 1
  9. if ptr != None:
  10.    newNode[‘next’] = ptr[‘next’]
  11.    ptr[‘next’] = newNod
  12.      
  13. ptr = Head
  14. while ptr[‘data’]  != 25:
  15.    ptr[‘data’] = 0
  16.    ptr = ptr[‘next’]
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top