Created
May 26, 2016 00:57
-
-
Save gsathya/6bacd50d14c0c940bb9204e9280ce3ef to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Node prev_node = node; | |
Node next_node = node.next; | |
Node new_node = new Node(element, next_node); | |
prev_node.next = new_node; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment