IniziaInizia gratis

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.

Questo esercizio fa parte del corso

Data Structures and Algorithms in Python

Visualizza il corso

Esercizio pratico interattivo

Passa dalla teoria alla pratica con uno dei nostri esercizi interattivi

Inizia esercizio