Skip to content

feat: add Rust solution for lc No.0975#4945

Merged
yanglbme merged 1 commit intomainfrom
dev
Jan 2, 2026
Merged

feat: add Rust solution for lc No.0975#4945
yanglbme merged 1 commit intomainfrom
dev

Conversation

@yanglbme
Copy link
Member

@yanglbme yanglbme commented Jan 2, 2026

No description provided.

Copilot AI review requested due to automatic review settings January 2, 2026 01:09
@idoocs idoocs added 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 Jan 2, 2026
@yanglbme yanglbme merged commit 70c058a into main Jan 2, 2026
14 checks passed
@yanglbme yanglbme deleted the dev branch January 2, 2026 01:09
Copy link

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

This PR adds a Rust implementation for LeetCode problem #975 "Odd Even Jump". The solution uses an ordered set (BTreeMap) combined with memoized depth-first search to efficiently determine the number of starting indices from which one can reach the end of an array following specific jump rules.

Key Changes

  • Implements the Odd Even Jump algorithm using BTreeMap for efficient ceiling/floor lookups
  • Uses memoized DFS with Option<i32> for tracking computed states
  • Follows the same algorithmic approach as existing Python, Java, C++, and Go solutions

💡 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

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants