Question: Develop and write pseudo code for an algorithm to do following steps: a) Find the maximum number from an array of size n. b) Find

Develop and write pseudo code for an algorithm to do following steps: a) Find the maximum number from an array of size n. b) Find the minimum number from the same array of size n. c) Find the difference between the largest and the smallest elements of the array. d) Count that how many elements of the array are bigger than the difference computed in the previous step and output that number. Analyze your algorithm and find its complexity class
Step by Step Solution
There are 3 Steps involved in it
Pseudocode Algorithm FindMaxMinAndCount Input array A of size n Output count of elements greate... View full answer
Get step-by-step solutions from verified subject matter experts
