Question: For a square nXn a array, a saddle point is an element that is the maximum in its row and the minimum in its column.
For a square nXn a array, a saddle point is an element that is the maximum in its row and the minimum in its column. Write a function saddle_point_found( ) where a is the name of a two dimensional square array and size is the number of rows, so that the code below will work properly. if(saddle_point_found(a, size, at_row, at_col, value)) cout<< saddle point found with value << value<< at row < cout<< alas no saddle point found :-( <
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
