Skip to content

Commit 41dc51a

Browse files
Create 29 LL from End.java
1 parent 19579c4 commit 41dc51a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

3 LinkedLists/29 LL from End.java

+7
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)