diff --git a/algorithms/Java/stacks/Next_Greater_Element.java b/algorithms/Java/stacks/Next_Greater_Element.java index 887025f9..500cb82e 100644 --- a/algorithms/Java/stacks/Next_Greater_Element.java +++ b/algorithms/Java/stacks/Next_Greater_Element.java @@ -32,7 +32,7 @@ import java.util.Stack; } long ans[]=nextLargerElement(arr,n); // functions that print array for calculating next greater element for (int i=0;i O(m*n)