An element in an array X is called a leader if it is grater than all elements to the
right of it in X. The best algorithm to find all leaders in an array.
A
Solves it in linear time using a left to right pass of the array
B
Solves in linear time using a right to left pass of the array
C
Solves it is using divide and conquer in time \(\Theta\)(nlogn)