Save
MEKA
week 7
Save
Share
Learn
Content
Leaderboard
Learn
Created by
yoyoyo
Visit profile
Cards (12)
Queue follows the
First In First Out (FIFO)
rule - the item that goes in first is the item that comes out first.
Enqueue
- putting items in the queue
Dequeue
- removing items from the queue
Enqueu
- add an element to the end of the queue
Dequeue
- remove an element from the front of the queue
IsEmpty
- check if the queue is empty
IsFull
- check if the queue is full
Peek
- get the value of the front of the queue without removing it
Priority Queue For letters:
Alphabetical
order
adding elemets:
add
()
offer()
removing elements-
remove()
poll()
acessing Elements -
element()
peek()