Lessons
C++ · Graphs · 49. Breadth-First Search
step 1 of 6
Wait in line
A queue is a line at the shop. push joins the back, front is who's first, pop lets them go.
First in, first out. Nobody cuts in.
Mission
Tuya joins the line last. Push her, then RUN.
PIP·1
main.cppyour code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
← press me!
Press RUN to see what this program does.