GeezerVison is showing github.com — hacking-tools-scriptss/Java/FloydAlgorithm at main · sanscript-tech/hacking-tools-scriptss
/
FloydAlgorithm
/Copy pathDirectory actions
More options
More optionsDirectory actions
More options
More options/
FloydAlgorithm
/Copy pathFolders and files
| Name | Name | Last commit message | Last commit date |
|---|
parent directory.. |
| | | |
| | | |
|
5
1 6 3 7 8
2
Loop exists
4--> size of linked list
1-->6-->3-->7-->8 =>nodes of linked list
2---> node to be checked
after creating the loop the detect loop fuction is called and the two pointer slow and fast meets if loop exists .
For better understanding,refer here:
O(n)