1
0
mirror of https://github.com/Snailclimb/JavaGuide synced 2025-08-01 16:28:03 +08:00

Update 几道常见的子符串算法题.md

This commit is contained in:
SnailClimb 2019-07-20 13:30:21 +08:00 committed by GitHub
parent a128881d45
commit 6537533ded
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -459,7 +459,7 @@ public class Main {
return 0;
}
}
return flag == 1 ? res : -res;
return flag != 2 ? res : -res;
}