deepak-find-leader
v1.0.0
Published
Find Leaders in a given array of integers
Downloads
6
Readme
What is this?
An npm pacakage that returns the elements in the array of integers which are greater that all the elements right to it.
How to install?
Run:npm i deepak-find-leader
uses:
const findLeader=require('deepak-find-leader')
findLeader([10,20,5,3,2])
Parameters
the findLeader() function takes an array of integers as an argument. By default it is set as an empty array.
It returns an array as a result