Skip to content

Commit f1c0d86

Browse files
committed
ADDED DATA STRUCTURE ARRAY ALGORITHMS
1 parent 54cc684 commit f1c0d86

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/main/java/com/thealgorithms/datastructures/arrays/LeadersInArray.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
/**
44
* A program to find leaders in an array.
5+
* https://www.geeksforgeeks.org/dsa/find-a-peak-in-a-given-array/
56
*
67
* A leader is an element that is greater than all the elements to its right.
78
* The rightmost element is always a leader.

src/main/java/com/thealgorithms/datastructures/arrays/PeakElement.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
/**
44
* A program to find a peak element in an array.
5+
* https://www.geeksforgeeks.org/dsa/leaders-in-an-array/
56
*
67
* <p>
78
* A peak element is an element that is greater than or equal to its neighbors.

0 commit comments

Comments
 (0)