Skip to content

feat: add solutions to lc problem: No.3983#5296

Merged
yanglbme merged 1 commit into
mainfrom
feat/3983-subsequence-after-one-replacement
Jul 5, 2026
Merged

feat: add solutions to lc problem: No.3983#5296
yanglbme merged 1 commit into
mainfrom
feat/3983-subsequence-after-one-replacement

Conversation

@yanglbme

@yanglbme yanglbme commented Jul 5, 2026

Copy link
Copy Markdown
Member

Summary

  • Add two-pointer solutions for LeetCode 3983 (Subsequence After One Replacement) in Python, Java, C++, Go, and TypeScript
  • Fill in Chinese and English README explanations with solution walkthrough and code tabs

Test plan

  • Format solution files with black, clang-format, gofmt, and prettier
  • Verify solutions pass on LeetCode

Co-authored-by: Cursor <cursoragent@cursor.com>
Copilot AI review requested due to automatic review settings July 5, 2026 09:31
@cursor

cursor Bot commented Jul 5, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@yanglbme yanglbme merged commit afc8041 into main Jul 5, 2026
8 checks passed
@yanglbme yanglbme deleted the feat/3983-subsequence-after-one-replacement branch July 5, 2026 09:32

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds multi-language solution implementations and accompanying writeups for LeetCode 3983 (“Subsequence After One Replacement”) in the repository’s standard solution directory layout.

Changes:

  • Added two-pointer/greedy matching solutions for LC 3983 in Python, Java, C++, Go, and TypeScript.
  • Expanded both Chinese and English READMEs with an explanation walkthrough and language code tabs.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
solution/3900-3999/3983.Subsequence After One Replacement/Solution.py Adds Python two-pointer solution implementation.
solution/3900-3999/3983.Subsequence After One Replacement/Solution.java Adds Java two-pointer solution implementation.
solution/3900-3999/3983.Subsequence After One Replacement/Solution.cpp Adds C++ two-pointer solution implementation.
solution/3900-3999/3983.Subsequence After One Replacement/Solution.go Adds Go two-pointer solution implementation.
solution/3900-3999/3983.Subsequence After One Replacement/Solution.ts Adds TypeScript two-pointer solution implementation.
solution/3900-3999/3983.Subsequence After One Replacement/README.md Adds Chinese explanation + code tabs for all included languages.
solution/3900-3999/3983.Subsequence After One Replacement/README_EN.md Adds English explanation + code tabs for all included languages.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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