Refactor Code Style (#4151)

This commit is contained in:
Saurabh Rahate
2023-04-15 13:55:54 +05:30
committed by GitHub
parent 1ce907625b
commit 1dc388653a
100 changed files with 293 additions and 319 deletions

View File

@ -20,7 +20,7 @@ public class LongestPalindromicSubstring {
if (input == null || input.length() == 0) {
return input;
}
boolean arr[][] = new boolean[input.length()][input.length()];
boolean[][] arr = new boolean[input.length()][input.length()];
int start = 0, end = 0;
for (int g = 0; g < input.length(); g++) {
for (int i = 0, j = g; j < input.length(); i++, j++) {