Reverse a Singly Linked List
Anonymous
Wrote the program with time complexity O(n) , but the interviewer wanted a much better complexity. Told him its impossible to reverse N elements in less than linear time.
Check out your Company Bowl for anonymous work chats.