We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 19579c4 commit 41dc51aCopy full SHA for 41dc51a
3 LinkedLists/29 LL from End.java
@@ -0,0 +1,7 @@
1
+//O(n) time and space
2
+public void display(ListNode head)
3
+{
4
+ if(head==null) return;
5
+ display(head.next);
6
+ System.out.print(head.val+"->);
7
+}
0 commit comments