Intel Interview Question Software Engineer / Developers
0of 0 votesWrite functions for insertion and deletion in a circular queue implemented using an array in C.
Hint: Remove the node from the end.
Add a node in the front. Move the pointer for removal and insertion. Pointer is just a counter for the index. Modulus it by size of array so that it circles from 0-n.
When pointers match , array is full.
Team: Firmware
Country: United States
Interview Type: In-Person

you forgot to bumped the top while insertion
- Anonymous on October 11, 2012 Edit | Flag Reply