Question: IN C PLUS Given the IntNode class, define the FindMax ( ) function to return the largest value in the list or - 9 9

IN C PLUS Given the IntNode class, define the FindMax() function to return the largest value in the list or -99 if the list is empty. Assume all values in the list are non-negative.
Ex: If the list contains:
head ->14->191->186->181
FindMax(headNode) returns 191.
Ex: If the list contains:
head ->
FindMax(headNode) returns -99.Given the IntNode class, define the FindMax() function to return the largest value in the list or -99 if the list is empty. Assume all values in the list are non-negative.
Ex: If the list contains:
head ->14->191->186->181
FindMax(headNode) returns 191.
Ex: If the list contains:
head ->
FindMax(headNode) returns -99.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!