Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Congratulations | Improve Your Code
Breadth First Search
course content

Зміст курсу

Breadth First Search

Breadth First Search

1. What is BFS
2. Practice
3. Improve Your Code
4. Solving the Problems using BFS

Congratulations

Congrats, you completed all necessary steps!

You implemented different functions that using BFS which may be useful for the Graph class. For now, the last tiny step is to think about some code reorganization and optimal usage.

You may notice that methods above usually contain similar code, and some methods can reuse others. For example, hasOneComponent() and getComponents() do the similar action, so we can combine them.

Let's go to the tasks!

Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів

Все було зрозуміло?

Секція 3. Розділ 1
toggle bottom row

Congratulations

Congrats, you completed all necessary steps!

You implemented different functions that using BFS which may be useful for the Graph class. For now, the last tiny step is to think about some code reorganization and optimal usage.

You may notice that methods above usually contain similar code, and some methods can reuse others. For example, hasOneComponent() and getComponents() do the similar action, so we can combine them.

Let's go to the tasks!

Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів

Все було зрозуміло?

Секція 3. Розділ 1
toggle bottom row

Congratulations

Congrats, you completed all necessary steps!

You implemented different functions that using BFS which may be useful for the Graph class. For now, the last tiny step is to think about some code reorganization and optimal usage.

You may notice that methods above usually contain similar code, and some methods can reuse others. For example, hasOneComponent() and getComponents() do the similar action, so we can combine them.

Let's go to the tasks!

Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів

Все було зрозуміло?

Congrats, you completed all necessary steps!

You implemented different functions that using BFS which may be useful for the Graph class. For now, the last tiny step is to think about some code reorganization and optimal usage.

You may notice that methods above usually contain similar code, and some methods can reuse others. For example, hasOneComponent() and getComponents() do the similar action, so we can combine them.

Let's go to the tasks!

Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Секція 3. Розділ 1
Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
We're sorry to hear that something went wrong. What happened?
some-alt