Data Structures Interview Questions

Question 1: How to find middle element of linked list in one pass? In order to find middle element of linked list in one pass, you need to maintain two-pointer, one increment at each node while other increments after two nodes at a time, by having this arrangement, when the first pointer reaches the end, …

Data Structures Interview Questions Read More »