-
-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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
Conversation
There was a problem hiding this 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_couponsfunction in Rust - Helper function
checkfor 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.
No description provided.