Breadth-first search visits a tree one level at a time, left to right, using a queue.
The overview and visualiser are free on every topic. Unlock solutions, code, interview kits, practice and quizzes across every stream.
Launch offer: 30% off your first payment