Qualcomm
Embedded Firmware Engineer
Reverse a Linked List
Medium
TechnicalcodingCandidate Selected
Write a function to reverse a linked list.
Code Snippets
C
struct Node { int data; Node* next; }; Node* reverse(Node* head) { Node* prev = NULL; Node* current = head; Node* next = NULL; while (current != NULL) { next = current->next; current->next = prev; prev = current; current = next; } return prev; }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.