Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: add rust solution to lc problem: No.3606 #4899

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
yanglbme merged 1 commit into main from dev
Dec 13, 2025
Merged

feat: add rust solution to lc problem: No.3606 #4899

yanglbme merged 1 commit into main from dev
Dec 13, 2025

Conversation

@yanglbme
Copy link
Member

@yanglbme yanglbme commented Dec 13, 2025

No description provided.

Copilot AI review requested due to automatic review settings December 13, 2025 00:01
@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 Dec 13, 2025
@yanglbme yanglbme merged commit a683485 into main Dec 13, 2025
13 of 14 checks passed
@yanglbme yanglbme deleted the dev branch December 13, 2025 00:01
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 #3606 "Coupon Code Validator". The solution validates coupons based on three criteria: non-empty alphanumeric codes (with underscores), valid business lines from a predefined set, and active status, then returns sorted valid coupon codes.

Key Changes:

  • Implementation of the validate_coupons function in Rust
  • Helper function check for validating coupon code format
  • Sorting logic by business line and code name

💡 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

Reviewers

Copilot code review Copilot Copilot left review comments

Assignees

No one assigned

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

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /