info@avatto.com
+91-9920808017
0. 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 ali 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
Solves it is using divide and conquer in time Θ(n log n)
Solves it in time Θ(n2)
You must be logged in to post a comment.
Login with Facebook
Login with Google
Forgot your password?
Lost your password? Please enter your email address. You will receive mail with link to set new password.
Back to login
You must be logged in to post a comment.