Skip to content

feat: add rust solution for lc No.2770#5190

Merged
yanglbme merged 1 commit into
mainfrom
dev
May 7, 2026
Merged

feat: add rust solution for lc No.2770#5190
yanglbme merged 1 commit into
mainfrom
dev

Conversation

@yanglbme
Copy link
Copy Markdown
Member

@yanglbme yanglbme commented May 7, 2026

No description provided.

Copilot AI review requested due to automatic review settings May 7, 2026 02:02
@idoocs idoocs added cpp Issues or Pull requests relate to .cpp code core team Issues or pull requests from core team md Issues or Pull requests relate to .md files rs Issues or Pull requests relate to .rs code labels May 7, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a Rust implementation for LeetCode problem 2770. Maximum Number of Jumps to Reach the Last Index, and updates accompanying documentation/snippets to include Rust and align the C++ recursion style used across the repo.

Changes:

  • Added Solution.rs implementing the memoized DFS / DP approach in Rust.
  • Updated C++ solution to use the repo-standard recursive lambda pattern (this auto&&) instead of std::function.
  • Updated both Chinese and English READMEs to (a) tidy example formatting and (b) include the Rust solution snippet.

Reviewed changes

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

File Description
solution/2700-2799/2770.Maximum Number of Jumps to Reach the Last Index/Solution.rs New Rust memoized DFS solution for LC 2770.
solution/2700-2799/2770.Maximum Number of Jumps to Reach the Last Index/Solution.cpp Refactors recursion helper to repo-standard recursive lambda style.
solution/2700-2799/2770.Maximum Number of Jumps to Reach the Last Index/README.md Example formatting cleanup + adds Rust solution section/snippet (CN).
solution/2700-2799/2770.Maximum Number of Jumps to Reach the Last Index/README_EN.md Example formatting cleanup + adds Rust solution section/snippet (EN).

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

@yanglbme yanglbme merged commit c4984df into main May 7, 2026
15 checks passed
@yanglbme yanglbme deleted the dev branch May 7, 2026 04:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core team Issues or pull requests from core team cpp Issues or Pull requests relate to .cpp code md Issues or Pull requests relate to .md files rs Issues or Pull requests relate to .rs code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants