-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Add Abbreviation Dynamic Programming Algorithm #957
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
Add Abbreviation Dynamic Programming Algorithm #957
Conversation
AliAlimohammadi
left a comment
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.
Fixed typo
AliAlimohammadi
left a comment
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.
Fixed white spaces.
AliAlimohammadi
left a comment
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.
Fixed Clippy
AliAlimohammadi
left a comment
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.
Fixed test case
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #957 +/- ##
=======================================
Coverage 95.44% 95.45%
=======================================
Files 333 334 +1
Lines 21524 21550 +26
=======================================
+ Hits 20544 20570 +26
Misses 980 980 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Hi @siriak, Could you please check this PR? Thanks. |
|
Hi, there are already enough examples of dynamic programming in this repository and we don't add problems from LeetCode and similar sites (only a few if needed to demonstrate a programming technique) |
Description
Adds the Abbreviation problem solution to the dynamic programming module.
Problem Statement
Determines if string
acan be transformed into stringbby capitalizingzero or more lowercase letters and deleting all remaining lowercase letters.
Implementation Details
Checklist
cargo test)cargo fmtcargo clippy