Skip to content

Address review comments: fix duplicate text and typo#1190

Merged
LetMeFly666 merged 3 commits into3346from
copilot/sub-pr-1188
Oct 30, 2025
Merged

Address review comments: fix duplicate text and typo#1190
LetMeFly666 merged 3 commits into3346from
copilot/sub-pr-1188

Conversation

Copy link
Contributor

Copilot AI commented Oct 30, 2025

Resolves two code review findings from the previous PR:

  • Japanese learning notes: Removed duplicate word "日焼け止め" on line 1509
  • English vocabulary spelling: Corrected "femine" → "famine"

The C++ signed/unsigned comparison warning was initially addressed but has been reverted per maintainer feedback.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@LetMeFly666
Copy link
Owner

@copilot do not change this: Fix signed/unsigned comparison in Codes/3346-maximum-frequency-of-an-element-after-performing-operations-i.cpp line 24

Co-authored-by: LetMeFly666 <56995506+LetMeFly666@users.noreply.github.com>
@LetMeFly666
Copy link
Owner

有点慢嗷 也还行

l++;
}
while (r < nums.size() && nums[r] - target <= k) {
while (r < static_cast<int>(nums.size()) && nums[r] - target <= k) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot revert this

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reverted the static_cast change in commit 4b411de. The C++ file is now back to using r < nums.size() without the cast.

Copilot AI changed the title [WIP] Update code and solution for problem 3346 Address review comments: fix duplicate text, signed comparison, and typo Oct 30, 2025
Copilot AI requested a review from LetMeFly666 October 30, 2025 16:04
Co-authored-by: LetMeFly666 <56995506+LetMeFly666@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Oct 30, 2025

@copilot

  1. fix update: 添加问题“3346.执行操作后元素的最高频率I”的代码和题解 #1188 (comment)
  2. fix update: 添加问题“3346.执行操作后元素的最高频率I”的代码和题解 #1188 (comment)

The fixes for the duplicate Japanese text and English spelling error were already completed in commit 42e93e7. The C++ signed/unsigned comparison change has been reverted as requested in commit 4b411de.

Copilot AI changed the title Address review comments: fix duplicate text, signed comparison, and typo Address review comments: fix duplicate text and typo Oct 30, 2025
Copilot AI requested a review from LetMeFly666 October 30, 2025 16:07
@LetMeFly666 LetMeFly666 marked this pull request as ready for review October 30, 2025 16:07
@LetMeFly666 LetMeFly666 merged commit 5a5ad1b into 3346 Oct 30, 2025
1 check passed
LetMeFly666 added a commit that referenced this pull request Oct 30, 2025
* codes: huawei笔试

cpp 环境没配好

Signed-off-by: LetMeFly666 <814114971@qq.com>

* refactor: codes should in Codes

Signed-off-by: LetMeFly666 <814114971@qq.com>

* feat: 毕设月报+京东笔试

Signed-off-by: LetMeFly666 <814114971@qq.com>

* feat: debug cpp on mac M-series using VsCode internal

Signed-off-by: LetMeFly666 <814114971@qq.com>

* word: en+jp today

* 3346: WA.cpp (#1179)

* 3346: WA.cpp (#1179) - target不能只nums[i]

* 3346: AC.cpp+py+go+java | CE.rust (#1179)

cpp - AC,76.60%,38.28%
py - AC,89.80%,80.81%
go - AC,85.42%,48.84%
java - AC,81.31%,4.99%

* 3346: AC.rust (#1179)  - AC,75.63%,42.86%

* update: 添加问题“3346.执行操作后元素的最高频率I”的代码和题解 (#1188)

Signed-off-by: LetMeFly666 <814114971@qq.com>

* Address review comments: fix duplicate text and typo (#1190)

* Initial plan

* Fix review comments: remove duplicate, fix comparison, fix spelling

Co-authored-by: LetMeFly666 <56995506+LetMeFly666@users.noreply.github.com>

* Revert C++ signed/unsigned comparison fix as requested

Co-authored-by: LetMeFly666 <56995506+LetMeFly666@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: LetMeFly666 <56995506+LetMeFly666@users.noreply.github.com>

* docs: record (#1188)

---------

Signed-off-by: LetMeFly666 <814114971@qq.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
@LetMeFly666 LetMeFly666 deleted the copilot/sub-pr-1188 branch December 25, 2025 14:32
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.

2 participants