Problem statement:
Given a LinkedList as follows, first can you write an algorithm to check whether this LinkedList is
creating loop or not?
second if yes then how?
1 -> 2 -> 3 -> 4 -> 5 -> 6 ->3
Given a LinkedList as follows, first can you write an algorithm to check whether this LinkedList is
creating loop or not?
second if yes then how?
1 -> 2 -> 3 -> 4 -> 5 -> 6 ->3
No comments:
Post a Comment