Skip to content

Commit a24f954

Browse files
committed
fix: code style
1 parent 71d60e5 commit a24f954

File tree

8 files changed

+12
-12
lines changed

8 files changed

+12
-12
lines changed

solution/2900-2999/2981.Find Longest Special Substring That Occurs Thrice I/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ class Solution {
126126

127127
private boolean check(int x) {
128128
int[] cnt = new int[26];
129-
for (int i = 0; i < n; ) {
129+
for (int i = 0; i < n;) {
130130
int j = i + 1;
131131
while (j < n && s.charAt(j) == s.charAt(i)) {
132132
j++;
@@ -153,7 +153,7 @@ public:
153153
int l = 0, r = n;
154154
auto check = [&](int x) {
155155
int cnt[26]{};
156-
for (int i = 0; i < n; ) {
156+
for (int i = 0; i < n;) {
157157
int j = i + 1;
158158
while (j < n && s[j] == s[i]) {
159159
++j;

solution/2900-2999/2981.Find Longest Special Substring That Occurs Thrice I/README_EN.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ class Solution {
116116

117117
private boolean check(int x) {
118118
int[] cnt = new int[26];
119-
for (int i = 0; i < n; ) {
119+
for (int i = 0; i < n;) {
120120
int j = i + 1;
121121
while (j < n && s.charAt(j) == s.charAt(i)) {
122122
j++;
@@ -143,7 +143,7 @@ public:
143143
int l = 0, r = n;
144144
auto check = [&](int x) {
145145
int cnt[26]{};
146-
for (int i = 0; i < n; ) {
146+
for (int i = 0; i < n;) {
147147
int j = i + 1;
148148
while (j < n && s[j] == s[i]) {
149149
++j;

solution/2900-2999/2981.Find Longest Special Substring That Occurs Thrice I/Solution.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class Solution {
55
int l = 0, r = n;
66
auto check = [&](int x) {
77
int cnt[26]{};
8-
for (int i = 0; i < n; ) {
8+
for (int i = 0; i < n;) {
99
int j = i + 1;
1010
while (j < n && s[j] == s[i]) {
1111
++j;

solution/2900-2999/2981.Find Longest Special Substring That Occurs Thrice I/Solution.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public int maximumLength(String s) {
1919

2020
private boolean check(int x) {
2121
int[] cnt = new int[26];
22-
for (int i = 0; i < n; ) {
22+
for (int i = 0; i < n;) {
2323
int j = i + 1;
2424
while (j < n && s.charAt(j) == s.charAt(i)) {
2525
j++;

solution/2900-2999/2982.Find Longest Special Substring That Occurs Thrice II/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ class Solution {
126126

127127
private boolean check(int x) {
128128
int[] cnt = new int[26];
129-
for (int i = 0; i < n; ) {
129+
for (int i = 0; i < n;) {
130130
int j = i + 1;
131131
while (j < n && s.charAt(j) == s.charAt(i)) {
132132
j++;
@@ -153,7 +153,7 @@ public:
153153
int l = 0, r = n;
154154
auto check = [&](int x) {
155155
int cnt[26]{};
156-
for (int i = 0; i < n; ) {
156+
for (int i = 0; i < n;) {
157157
int j = i + 1;
158158
while (j < n && s[j] == s[i]) {
159159
++j;

solution/2900-2999/2982.Find Longest Special Substring That Occurs Thrice II/README_EN.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ class Solution {
116116

117117
private boolean check(int x) {
118118
int[] cnt = new int[26];
119-
for (int i = 0; i < n; ) {
119+
for (int i = 0; i < n;) {
120120
int j = i + 1;
121121
while (j < n && s.charAt(j) == s.charAt(i)) {
122122
j++;
@@ -143,7 +143,7 @@ public:
143143
int l = 0, r = n;
144144
auto check = [&](int x) {
145145
int cnt[26]{};
146-
for (int i = 0; i < n; ) {
146+
for (int i = 0; i < n;) {
147147
int j = i + 1;
148148
while (j < n && s[j] == s[i]) {
149149
++j;

solution/2900-2999/2982.Find Longest Special Substring That Occurs Thrice II/Solution.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class Solution {
55
int l = 0, r = n;
66
auto check = [&](int x) {
77
int cnt[26]{};
8-
for (int i = 0; i < n; ) {
8+
for (int i = 0; i < n;) {
99
int j = i + 1;
1010
while (j < n && s[j] == s[i]) {
1111
++j;

solution/2900-2999/2982.Find Longest Special Substring That Occurs Thrice II/Solution.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public int maximumLength(String s) {
1919

2020
private boolean check(int x) {
2121
int[] cnt = new int[26];
22-
for (int i = 0; i < n; ) {
22+
for (int i = 0; i < n;) {
2323
int j = i + 1;
2424
while (j < n && s.charAt(j) == s.charAt(i)) {
2525
j++;

0 commit comments

Comments
 (0)