How do you find the middle element in a linked list?
Anonymous
Have two pointers. One pointer should jump two elements for every traversal and another single element. When first reached the end and the element which second is pointing is the middle element
Check out your Company Bowl for anonymous work chats.