7. Make a maxNode function which is a recursive function (no credit with a loop)
ID: 644140 • Letter: 7
Question
Explanation / Answer
double maxNode(ListNode *head){
if(head->next == NULL)
return head->value;
double Max = maxNode(head->next);
return head->value>Max?Max:head->value;
}
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.