Question: Assume that you are given a two dimensional array num[n][m] of integer data type with n rows and m columns. Also, assume that you are
Assume that you are given a two dimensional array num[n][m] of integer data type with n rows and m columns. Also, assume that you are given an integer x. Modify Linear search algorithm (pseudocode ) that scans through the given array num[n][m] for the integer x. your algorithm should output the position at x occurs in the array else it should output -1 and -1.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
