Consider a 2-D array of order n x n. 

a[n][n] = {{11, 10, 9}; {8, 25, 17}; {5, 21, 20}}

Which of the following algorithm design technique is used to find a peak element in a given array where peak element is an element which is greater than or equal to its four neighbors, left, right, top and bottom.

1
Greedy approach
2
Divide and conquer method
3
dynamic programming
4
brute force method

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation