129k views
3 votes
You are writing a recursive code segment. Which of the following would be the most helpful comment?

This code is recursive.

This recursive code counts the nodes in a tree.

This is efficient code.

The purpose of this code is evident.

2 Answers

2 votes

Answer:

This Code is recursive

Step-by-step explanation:

It tells the person reading the code exactly what is happening in simple enough terms.

User Leonid Usov
by
7.1k points
1 vote

Answer:

This recursive code counts the nodes in a tree.

Step-by-step explanation:

User Rohit Arya
by
7.0k points