Q. 8 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. Answer: (B)
Explanation:
Q. 8 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. Answer: (B)
Explanation: