MulaiMulai sekarang secara 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.

Latihan ini adalah bagian dari kursus

Data Structures and Algorithms in Python

Lihat Kursus

Latihan interaktif praktis

Ubah teori menjadi tindakan dengan salah satu latihan interaktif kami.

Mulai berolahraga