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!
Danke für Ihr Feedback!
single
Fragen Sie AI
Fragen Sie AI
Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen
Awesome!
Completion rate improved to 7.69
Congratulations
Swipe um das Menü anzuzeigen
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!
Danke für Ihr Feedback!
Awesome!
Completion rate improved to 7.69single