Skip to content

Commit 53e4164

Browse files
authored
Update README.md
added 2nd program
1 parent e385f1f commit 53e4164

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

README.md

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
# Python-DataStructure-and-Algorithm
2-
3-
4-
linkedlist_nth_to_lastnode.py
5-
2+
## linkedlist_nth_to_lastnode.py
63
Q: find the nth element from last node of a given linked list.
74
If nth value is greater than given linked list then through back LookupError.
5+
6+
## LinkedList_CycleCheck.py
7+
Q: check for cycle in give given linked list if exist return True else False.
8+
- 1 --> 2 --> 3 --> 1
9+
- __True__
10+
- 1 --> 2 --> 3 --> None
11+
- __False__

0 commit comments

Comments
 (0)