If you want to check if your linked list is circular you can use Floyd’s Cycle-Finding Algorithm aka Tortoise and the Hare Algorithm.
It’s quite efficient as It has O(n) complexity.
Continue reading
If you want to check if your linked list is circular you can use Floyd’s Cycle-Finding Algorithm aka Tortoise and the Hare Algorithm.
It’s quite efficient as It has O(n) complexity.
Continue reading
Simple implementation of binary tree in C++ Continue reading
Simple implementation of Queue with exception handling in C++ using templates Continue reading
Simple implementation of Stack with exception handling in C++ using templates Continue reading
Simple implementation of Two-way linked list in C++ Continue reading