Skip to content

Commit 0ae2611

Browse files
Next Greater Element 1 with Monotonic Stack - Leetcode 496 - fixed build failure
1 parent c71585b commit 0ae2611

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/stack/next_greater_element_i/MonotonicStack.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public class MonotonicStack {
3636
* @param nums1 A subset of {@code nums2} for which to find the next greater elements.
3737
* @param nums2 The array in which to search for the next greater elements.
3838
* @return An array of the same length as {@code nums1}, where each element is the
39-
* next greater element, or -1 if none exists.
39+
* next greater element, or -1 if none exists.
4040
*/
4141
public int[] nextGreaterElement(int[] nums1, int[] nums2) {
4242
// Map to store {element -> nextGreaterElement} for nums2

0 commit comments

Comments
 (0)