Lab 3, cosmetic.

This commit is contained in:
Rhinemann 2023-06-05 16:37:15 +03:00
parent 97b2b761e4
commit 2b8f88a45f
1 changed files with 2 additions and 2 deletions

View File

@ -13,8 +13,8 @@ public class lab_3 {
leftBoundary--;
rightBoundary++;
}
// if it's length is greater than maxLength update
// maxLength and res
// if it's length is greater than maxStrLength update
// maxLength and result
if (rightBoundary - leftBoundary - 1 >= maxStrLength) {
result = string.substring(leftBoundary + 1, rightBoundary);
maxStrLength = rightBoundary - leftBoundary - 1;