Skip to content

Commit 6b91248

Browse files
authored
Remove main method from MonotonicIncreasingStack
Removed the main method and related print statements.
1 parent efe19ad commit 6b91248

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

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

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,6 @@ public static int[] nextSmallerElement(int[] arr) {
4242
}
4343
return result;
4444
}
45-
46-
public static void main(String[] args) {
47-
int[] arr = {4, 5, 2, 10, 8};
48-
49-
int[] nextGreater = nextGreaterElement(arr);
50-
int[] nextSmaller = nextSmallerElement(arr);
51-
52-
System.out.println("Next Greater Element: " + Arrays.toString(nextGreater));
53-
System.out.println("Next Smaller Element: " + Arrays.toString(nextSmaller));
54-
}
5545
}
5646

5747
/* Reference: https://www.geeksforgeeks.org/dsa/introduction-to-monotonic-stack-2/ */

0 commit comments

Comments
 (0)