...
Question 10990 – Software-Engineering
April 28, 2024
Question 4464 – Data-Interpretation
April 28, 2024
Question 10990 – Software-Engineering
April 28, 2024
Question 4464 – Data-Interpretation
April 28, 2024

Question 9330 – GATE 2006

An element in an array X is called a leader if it is greater than all elements to the right of it in X. The best algorithm to find all leaders in an array

Correct Answer: B

Question 17 Explanation: 
Solves it in linear time using a right to left pass of the array will takes time complexity is O(n).
A
Solves it in linear time using a left to right pass of the array
B
Solves it in linear time using a right to left pass of the array
C
Solves it using divide and conquer in time θ(nlogn)
D
Solves it in time θ(n2)
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!