Skip to content

solution 17#427

Open
JinPeng2023110886 wants to merge 2 commits intoHanchuanXu:mainfrom
JinPeng2023110886:fix
Open

solution 17#427
JinPeng2023110886 wants to merge 2 commits intoHanchuanXu:mainfrom
JinPeng2023110886:fix

Conversation

@JinPeng2023110886
Copy link
Copy Markdown

学号:2023110886

修改思路:

  1. 修复语法错误:包括数组声明语法、循环条件语法、位运算表达式语法错误
  2. 修复逻辑错误:掩码计算逻辑、滑动窗口索引计算、重复序列检测逻辑
  3. 优化算法:使用位运算和滑动窗口提高处理长序列的效率
  4. 完善测试:添加完整的测试用例,覆盖正常情况、边界情况和特殊场景

测试结果:5个测试用例全部通过,包括:

  • 正常情况下的重复序列检测
  • 全部重复序列的情况
  • 无重复序列的情况
  • 边界情况(长度等于10和小于10)
  • 多个重复序列的情况

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant