Skip to content

Instantly share code, notes, and snippets.

@kshitijvarshne1
Created February 8, 2021 06:17
Show Gist options
  • Save kshitijvarshne1/dfe73a9fb80c7bf96655e0cf3b6ec850 to your computer and use it in GitHub Desktop.
Save kshitijvarshne1/dfe73a9fb80c7bf96655e0cf3b6ec850 to your computer and use it in GitHub Desktop.
/* Created by IntelliJ IDEA.
* Author: Kshitij Varshney (kshitijvarshne1)
* Date: 08-Feb-21
* Time: 11:00 AM
* File: Execution.java
*/
package feb08_21_NK.LinkedList;
public class Execution {
public static void main(String[] args) {
SinglyLinkedList list = new SinglyLinkedList();
for (int i = 0; i < 5; i++) {
list.insertAtBegin(new Node(i));
}
list.printSinglyLinkedList();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment