Slow and Fast Algorithm
The Use-Case
This algorithm is used in various cases and concepts when it comes to linked list, some use cases are as follows
For finding the mid of the linked list in O(n) complexity.
To Detect the loop in the linked list
now let's discuss it's ...
ujjwalsharma.hashnode.dev3 min read