313 views
1 votes
1 votes
Consider a sorted array of integers, we have to implement the function Max( ) with input ‘x’, which find the maximum element present in array which is smaller than or equal to ‘x’. If “x” is smallest element then Max( ) will return “0”. What is the time complexity taken by Max( )?

Please log in or register to answer this question.

No related questions found