Aan de slagGa gratis aan de slag

Using breadth first search in binary trees

In this video, you learned how to implement the breadth first search (BFS) algorithm. As you saw, BFS explores the nodes of a binary tree level-by-level.

Given this binary tree, what order will the BFS algorithm follow?

Graphical representation of a binary tree.

Deze oefening maakt deel uit van de cursus

Data Structures and Algorithms in Python

Cursus bekijken

Praktische interactieve oefening

Zet theorie om in actie met een van onze interactieve oefeningen.

Begin met trainen