1. Midpoint of the LL #

Created Saturday 18 January 2020

Remember the middle element is floor((length-1)/2)

travx = travx -> next; trav2x = trav2x -> next -> next; // we don’t need to check the case where trav2x == NULL, i.e we have never made that move.

Length is not necessary to be calculated for getting the middle element. Proof: Intuition and PMI