Middle element in linked list
Anonymous
int length =linkedList.size(); int middleIndex = length/2; Note: This can work for the size is an odd number. If the size is even number then we should ask which number should return from interviewr
Check out your Company Bowl for anonymous work chats.