Queue: Introduction To Data Structures
Queue: Introduction To Data Structures
Queue: Introduction To Data Structures
a b c d
first last
• ‘last’ moves right for every addition
• ‘first’ moves right for every deletion
• empty when first = last + 1
• full when last = arraysize
• but ...