al-go-rithms icon indicating copy to clipboard operation
al-go-rithms copied to clipboard

Leaders in an Array (Data Structure Problem)

Open kanikarajpal opened this issue 1 year ago • 2 comments

This is a(n):

  • [x] New algorithm
  • [ ] Update to an existing algorithm
  • [ ] Error
  • [ ] Proposal to the Repository

Details: I would like to add an Algorithm- Leaders in an Array (Geeks for Geeks Problem).

Description - Given an array A of positive integers. Your task is to find the leaders in the array. An element of array is leader if it is greater than or equal to all the elements to its right side. The rightmost element is always a leader.

Link - https://practice.geeksforgeeks.org/problems/leaders-in-an-array-1587115620/0

kanikarajpal avatar Oct 12 '22 09:10 kanikarajpal