From 99fea8a2f20f4f16a8066b65af41449c82d48550 Mon Sep 17 00:00:00 2001 From: subhamgcon Date: Mon, 10 Oct 2022 18:29:57 +0530 Subject: [PATCH] Added Linked List folder --- .DS_Store | Bin 0 -> 6148 bytes Linked-List/.DS_Store | Bin 0 -> 6148 bytes Linked-List/.idea/.gitignore | 3 +++ Linked-List/.idea/Linked-List.iml | 9 +++++++ Linked-List/.idea/misc.xml | 6 +++++ Linked-List/.idea/modules.xml | 9 +++++++ Linked-List/.idea/runConfigurations.xml | 10 ++++++++ Linked-List/.idea/vcs.xml | 6 +++++ Linked-List/LinkedList.java | 31 ++++++++++++++++++++++++ 9 files changed, 74 insertions(+) create mode 100644 .DS_Store create mode 100644 Linked-List/.DS_Store create mode 100644 Linked-List/.idea/.gitignore create mode 100644 Linked-List/.idea/Linked-List.iml create mode 100644 Linked-List/.idea/misc.xml create mode 100644 Linked-List/.idea/modules.xml create mode 100644 Linked-List/.idea/runConfigurations.xml create mode 100644 Linked-List/.idea/vcs.xml create mode 100644 Linked-List/LinkedList.java diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..0e3dd98631bcd5f29bac879a93e7eecd56cd4b5c GIT binary patch literal 6148 zcmeHK&u`N(6n<_CODRYl8qzLEkr3jtjqZmkAue6X4xn*aCUyW+lBPh}`G!4vw1e{AZhJnjTX*g~e0xKvuk6GT&xO@#?+^wTqPmdh!9gq9NLI-=o8AyaoF8+ac(1yu+Og$L(Ie3cUh%l zL>SGnA{A57v4>pp(j>bZv+&YlSD*&(twG@=) z&p*%>3SdWLp%5AfQ?5Ye%Jdb3>AM3{?r865`$C~|CnkGF9Njb1Hx#C?9?X{J#5xL1 zZWu5Olo_b1YEzv52g~pOWhYZJ3>XIfDF#^0ah)!Pq|eq1gA-@1jr0adh_EXZN*84M iIFda3Av6&4BOqxonPK3MGVlZQ#ma90 literal 0 HcmV?d00001 diff --git a/Linked-List/.DS_Store b/Linked-List/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..420c7f3ba12116e43c2615ce049cb2403cd30b2a GIT binary patch literal 6148 zcmeHKJ5Iw;5S)b+ktj$>`A!gt8(2{&km$Go384TYQUs{oaU6~avmX$ap`f8av(oOo zx8Cuyr|^0K*y3q(3d{gZ>5h2uFgCyLKC*+#7?I9<++c$X++vT%QT6u;=N<>=0rvy` z9CujZ8LRW{?s~o5ty$@h`AVO^g>fa50#ZNocC{a-gNC7GEsepeU z8r`ug>=WbD!4M+=al&*M*D*^Fn + + + + + + + + \ No newline at end of file diff --git a/Linked-List/.idea/misc.xml b/Linked-List/.idea/misc.xml new file mode 100644 index 0000000..639900d --- /dev/null +++ b/Linked-List/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Linked-List/.idea/modules.xml b/Linked-List/.idea/modules.xml new file mode 100644 index 0000000..0e229f4 --- /dev/null +++ b/Linked-List/.idea/modules.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/Linked-List/.idea/runConfigurations.xml b/Linked-List/.idea/runConfigurations.xml new file mode 100644 index 0000000..797acea --- /dev/null +++ b/Linked-List/.idea/runConfigurations.xml @@ -0,0 +1,10 @@ + + + + + + \ No newline at end of file diff --git a/Linked-List/.idea/vcs.xml b/Linked-List/.idea/vcs.xml new file mode 100644 index 0000000..6c0b863 --- /dev/null +++ b/Linked-List/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Linked-List/LinkedList.java b/Linked-List/LinkedList.java new file mode 100644 index 0000000..d410dfc --- /dev/null +++ b/Linked-List/LinkedList.java @@ -0,0 +1,31 @@ +class LinkedList { + Node head; + + + static class Node { + int data; + Node next; + Node(int d) + { + data = d; + next = null; + } + } + + public static void main(String[] args) + { + LinkedList list = new LinkedList(); + + list.head = new Node(1); + Node second = new Node(2); + Node third = new Node(3); + + + + list.head.next = second; + + + second.next + = third; + } +