Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Components Methods | 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

Components Methods

First, Copy and Paste the whole implemented class Graph to the Editor, and save it somewhere outside for safety.

Завдання

We can use getComponents() inside hasOneComponent() function, and return True if answer consists of one component. Let's leave getComponents() as it is, and change hasOneComponent() by calling getComponents() inside it, and analyzing the answer.

Завдання

We can use getComponents() inside hasOneComponent() function, and return True if answer consists of one component. Let's leave getComponents() as it is, and change hasOneComponent() by calling getComponents() inside it, and analyzing the answer.

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

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

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

Components Methods

First, Copy and Paste the whole implemented class Graph to the Editor, and save it somewhere outside for safety.

Завдання

We can use getComponents() inside hasOneComponent() function, and return True if answer consists of one component. Let's leave getComponents() as it is, and change hasOneComponent() by calling getComponents() inside it, and analyzing the answer.

Завдання

We can use getComponents() inside hasOneComponent() function, and return True if answer consists of one component. Let's leave getComponents() as it is, and change hasOneComponent() by calling getComponents() inside it, and analyzing the answer.

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

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

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

Components Methods

First, Copy and Paste the whole implemented class Graph to the Editor, and save it somewhere outside for safety.

Завдання

We can use getComponents() inside hasOneComponent() function, and return True if answer consists of one component. Let's leave getComponents() as it is, and change hasOneComponent() by calling getComponents() inside it, and analyzing the answer.

Завдання

We can use getComponents() inside hasOneComponent() function, and return True if answer consists of one component. Let's leave getComponents() as it is, and change hasOneComponent() by calling getComponents() inside it, and analyzing the answer.

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

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

First, Copy and Paste the whole implemented class Graph to the Editor, and save it somewhere outside for safety.

Завдання

We can use getComponents() inside hasOneComponent() function, and return True if answer consists of one component. Let's leave getComponents() as it is, and change hasOneComponent() by calling getComponents() inside it, and analyzing the answer.

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