We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c71585b commit 0ae2611Copy full SHA for 0ae2611
src/main/java/stack/next_greater_element_i/MonotonicStack.java
@@ -36,7 +36,7 @@ public class MonotonicStack {
36
* @param nums1 A subset of {@code nums2} for which to find the next greater elements.
37
* @param nums2 The array in which to search for the next greater elements.
38
* @return An array of the same length as {@code nums1}, where each element is the
39
- * next greater element, or -1 if none exists.
+ * next greater element, or -1 if none exists.
40
*/
41
public int[] nextGreaterElement(int[] nums1, int[] nums2) {
42
// Map to store {element -> nextGreaterElement} for nums2
0 commit comments