algorithms
[closed]

in Algorithms retagged by
200 views
1 vote
1 vote
closed as a duplicate of: GATE CSE 2006 | Question: 17
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

Solves it in linear time using a left to right pass of the array

Solves in linear time using a right to left pass of the array

Solves it using divide and conquer in time θ(nlogn)

Solves it in time θ(n^2)

 

answer given is a bt how?
in Algorithms retagged by
200 views

1 comment

0
0

Related questions

0 votes
0 votes
1 answer
2
1 vote
1 vote
2 answers
4