It is a pointer algorithm that uses only two pointers, moving through the sequence at different speeds. It states the usage of Linked List in this algorithm and its output.
Name the file as file_name.cpp or file_name.java
Copied articles or blogs from any online sites will not be accepted.