#include #define ROWS 5 #define COLS 5 // A saddle point is an element in a 2D matrix that is the smallest in its row, // but largest in its column. // find_saddle_point should return the saddle point element or -1 if there is // no saddle point // DO NOT CHANGE THE FUNCTION DECLARATION int find_saddle_point(int grid[ROWS][COLS]) { // WRITE YOUR CODE HERE! return 0; } // This is a simple main function which could be used // to test your find_saddle_point function. // Only your find_saddle_point function will be marked. int main(void) { // This grid should return 12 when passed to the find_saddle_point function // This is because the element at test_grid[1][2], is the smallest in its row // but largest in its column int test_grid[ROWS][COLS] = { {16, 11, 10, 9, 13}, {15, 13, 12, 14, 16}, {18, 3, 4, 5, 5}, {16, 14, 11, 4, 5}, { 1, 2, 10, 4, 95}, }; // DO NOT ADD YOUR FUNCTIONALITY/LOGIC IN MAIN // IT WILL NOT BE MARKED int result = find_saddle_point(test_grid); printf("%d\n", result); return 0; }