From 92568a4c7010777675bd13bc37251ef6ec519849 Mon Sep 17 00:00:00 2001 From: Manish Dait Date: Tue, 4 Jul 2023 20:50:47 +0530 Subject: [PATCH] Fix some errors in java code. --- algorithms/Java/stacks/Next_Greater_Element.java | 2 +- algorithms/Java/stacks/stack.java | 2 +- algorithms/Java/strings/Longest_common_substring.java | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) 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)