al-go-rithms
al-go-rithms copied to clipboard
Leaders in an Array (Data Structure Problem)
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