mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-27 06:23:08 +08:00
Refactor Code Style (#4151)
This commit is contained in:
@ -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++) {
|
||||
|
Reference in New Issue
Block a user