I am following the below approach to calculate the middle element from the linked list
, but I want is there any built in method or any other approach which can als
Options:
Other than that I don't think you can do better than your algorithm.