Skip to content

Commit 8cfd530

Browse files
authored
Add comments to MonotonicIncreasingStack.java
Added a comment block explaining the Monotonic Increasing Stack algorithm and its applications.
1 parent 8bd26a1 commit 8cfd530

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/test/java/com/thealgorithms/stacks/MonotonicIncreasingStack.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*Contributor: Nayan Saraff
2+
3+
This Monotonic Increasing Stack is a popular algorithm which helps
4+
in solving various problems including the Stock Span, Trapping Rain water*/
5+
6+
17
import java.util.*;
28

39
public class MonotonicStack {

0 commit comments

Comments
 (0)