Skip to content

Commit 8d33874

Browse files
committed
Fixed style
1 parent 2e73219 commit 8d33874

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/main/java/g1301_1400/s1392_longest_happy_prefix/Solution.java

+4-3
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@
55

66
public class Solution {
77
public String longestPrefix(String s) {
8-
char c[] = s.toCharArray();
8+
char[] c = s.toCharArray();
99
int n = c.length;
10-
int a[] = new int[n];
11-
int max = 0, i = 1;
10+
int[] a = new int[n];
11+
int max = 0;
12+
int i = 1;
1213
while (i < n) {
1314
if (c[max] == c[i]) {
1415
max++;

0 commit comments

Comments
 (0)