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.
Grazie per i tuoi commenti!
single
Chieda ad AI
Chieda ad AI
Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione
Riassuma questo capitolo
Explain code
Explain why doesn't solve task
Awesome!
Completion rate improved to 7.69
Components Methods
Scorri per mostrare il 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.
Grazie per i tuoi commenti!
single