PA of Algorithms Q96

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

  • Option : B
  • Explanation :
    The best algorithm is we can solve in linear time using right to left pass.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *