Skip to content

Commit 41dc51a

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

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎3 LinkedLists/29 LL from End.java‎

Lines changed: 7 additions & 0 deletions
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)