ZoranPandovski / al-go-rithms

:musical_note: Algorithms written in different programming languages - https://zoranpandovski.github.io/al-go-rithms/
Creative Commons Zero v1.0 Universal
1.34k stars 1.94k forks source link

Leaders in an Array (Data Structure Problem) #3321

Open kanikarajpal opened 2 years ago

kanikarajpal commented 2 years ago

This is a(n):

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

UTKARSHMOHAN2003 commented 2 years ago

PLEASE ASSIGN ME THIS PROBLEM I HAVE COORECT SOLUTION

Sudhanshu-shekharPandey commented 2 years ago

I have created a new code for Leaders in an Array with correct methodology