Qualcomm
Embedded Firmware Engineer
Find Middle Element of Linked List
Medium
TechnicalcodingCandidate Selected
How would you find the middle element of a linked list?
Code Snippets
C
Node* findMiddle(Node* head) { Node* slow = head; Node* fast = head; while (fast != NULL && fast->next != NULL) { slow = slow->next; fast = fast->next->next; } return slow; }This question was asked in
Qualcomm Embedded Firmware Engineer Interview Experience
I had a comprehensive interview experience with Qualcomm consisting of four rounds: a technical round focusing on C programming and operating systems, an onsite round discussing Android-related topics, and a hiring manager round that revisited technical subjects. The overall difficulty was medium, with a good mix of theoretical and practical questions, including pointers, memory management, and Android middleware. Overall, it was an engaging process that tested both my technical knowledge and practical skills.