Skip to content

feat: add solutions to lc problem: No.3756#5302

Merged
yanglbme merged 1 commit into
mainfrom
feat/3756-sum-and-multiply
Jul 8, 2026
Merged

feat: add solutions to lc problem: No.3756#5302
yanglbme merged 1 commit into
mainfrom
feat/3756-sum-and-multiply

Conversation

@yanglbme

@yanglbme yanglbme commented Jul 8, 2026

Copy link
Copy Markdown
Member

Summary

  • Add prefix sum solutions for LeetCode 3756 in Python, Java, C++, Go, and TypeScript
  • Update README.md and README_EN.md with solution explanations and code blocks

Test plan

  • Code formatted with black, clang-format, gofmt, and prettier
  • Pre-commit hooks passed

Made with Cursor

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

cursor Bot commented Jul 8, 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 a91a84d into main Jul 8, 2026
7 of 8 checks passed
@yanglbme yanglbme deleted the feat/3756-sum-and-multiply branch July 8, 2026 00:34

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

This PR adds multi-language reference solutions for LeetCode 3756. Concatenate Non-Zero Digits and Multiply by Sum II, using a prefix-sum / prefix-concatenation approach, and updates the problem READMEs with the corresponding explanation and code snippets.

Changes:

  • Add solution implementations in Python, Java, C++, Go, and TypeScript.
  • Document the prefix arrays + modular arithmetic derivation in README.md and README_EN.md.
  • Include full code blocks for all supported languages in both READMEs.

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/3700-3799/3756.Concatenate Non-Zero Digits and Multiply by Sum II/Solution.ts TypeScript solution using prefix arrays and bigint modular arithmetic.
solution/3700-3799/3756.Concatenate Non-Zero Digits and Multiply by Sum II/Solution.py Python solution using prefix arrays and modular arithmetic.
solution/3700-3799/3756.Concatenate Non-Zero Digits and Multiply by Sum II/Solution.java Java solution with precomputed powers of 10 and O(1) queries.
solution/3700-3799/3756.Concatenate Non-Zero Digits and Multiply by Sum II/Solution.go Go solution with precomputed powers of 10 and prefix tracking.
solution/3700-3799/3756.Concatenate Non-Zero Digits and Multiply by Sum II/Solution.cpp C++ solution with static power table and prefix arrays.
solution/3700-3799/3756.Concatenate Non-Zero Digits and Multiply by Sum II/README.md Chinese explanation + embedded code for all languages.
solution/3700-3799/3756.Concatenate Non-Zero Digits and Multiply by Sum II/README_EN.md English explanation + embedded code for all 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