Ashish-kumar7 / geeks-for-geeks-solutions

Solutions of questions on Geeks-for-Geeks.Solution Available in C++.
29 stars 47 forks source link

Used two pointers to find the middle element of linked list optimally. #52

Closed harshdubey11 closed 3 years ago

harshdubey11 commented 3 years ago

Added the slow/fast pointer approach to find middle element optimally in O(1) space and O(N) time.

Ashish-kumar7 commented 3 years ago

Please add any other question solution. This already exists.