mirror of
https://github.com/ASDjonok/OOP_IO-2x_2023.git
synced 2025-06-07 22:49:24 +03:00
Lab 3, cosmetic.
This commit is contained in:
parent
97b2b761e4
commit
2b8f88a45f
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user