Advertisement
Guest User

list

a guest
Feb 8th, 2016
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. x = L.head
  2. while (x.next =/= NULL) do
  3. if (x.prev.key == x.key)
  4. then DELETE(L, x.prev)
  5. x = x.next
  6.  
  7.  
  8.  
  9. DELETE(L, x)
  10. if x.prev =/= NULL
  11. then x.prev.next = x.next
  12. else L.head = x.next
  13.  
  14. if x.next =/= NULL
  15. then x.next.prev = x.prev
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement