Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
2023120243
1、在numSubseq函数中,首先i的边界不对,没有考虑数组最后一个,另外取余数的符号不是“/”,而是“%”;
2、在pretreatment函数中,初值设置的不对,应该从1开始,从0开始会导致所有数组数值被处理成0;
3、在binarySearch函数中,循环的判断条件不对,另外再循环中的逻辑处理有错,需要更改;
4、另外,在本次改动中增加了测试文件,在整个文件模块中添加了Solution5_Test的子模块,将Solution5和测试文件均放在了子模块的src/zjs中。