style: enable MultipleVariableDeclarations in checkstyle (#5175)

Co-authored-by: vaibhav <vaibhav.waghmare@techprescient.com>
This commit is contained in:
vaibhav9t1
2024-05-25 23:48:27 +05:30
committed by GitHub
parent 44ce6e7b0d
commit 9eaa2bb756
82 changed files with 299 additions and 121 deletions

View File

@ -12,7 +12,8 @@ public final class LargestRectangle {
}
public static String largestRectanglehistogram(int[] heights) {
int n = heights.length, maxArea = 0;
int n = heights.length;
int maxArea = 0;
Stack<int[]> st = new Stack<>();
for (int i = 0; i < n; i++) {
int start = i;

View File

@ -90,7 +90,8 @@ public final class PostfixToInfix {
Stack<String> stack = new Stack<>();
StringBuilder valueString = new StringBuilder();
String operandA, operandB;
String operandA;
String operandB;
char operator;
for (int index = 0; index < postfix.length(); index++) {