Components Methods
First, Copy and Paste the whole implemented class Graph to the Editor, and save it somewhere outside for safety.
Swipe to start coding
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.
Merci pour vos commentaires !
single
Demandez à l'IA
Demandez à l'IA
Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion
Résumer ce chapitre
Expliquer le code dans file
Expliquer pourquoi file ne résout pas la tâche
Awesome!
Completion rate improved to 7.69
Components Methods
Glissez pour afficher le menu
First, Copy and Paste the whole implemented class Graph to the Editor, and save it somewhere outside for safety.
Swipe to start coding
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.
Merci pour vos commentaires !
single