Skip to content

Conversation

@AliAlimohammadi
Copy link

Description

Adds the Abbreviation problem solution to the dynamic programming module.

Problem Statement

Determines if string a can be transformed into string b by capitalizing
zero or more lowercase letters and deleting all remaining lowercase letters.

Implementation Details

  • Uses dynamic programming approach
  • Time Complexity: O(n * m)
  • Space Complexity: O(n * m)
  • Includes comprehensive test cases from HackerRank

Checklist

  • Code follows the repository's style guidelines
  • Tests pass locally (cargo test)
  • Code formatted with cargo fmt
  • No warnings from cargo clippy
  • Updated mod.rs to include new module

Copy link
Author

@AliAlimohammadi AliAlimohammadi left a comment

Choose a reason for hiding this comment

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

Fixed typo

Copy link
Author

@AliAlimohammadi AliAlimohammadi left a comment

Choose a reason for hiding this comment

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

Fixed white spaces.

Copy link
Author

@AliAlimohammadi AliAlimohammadi left a comment

Choose a reason for hiding this comment

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

Fixed Clippy

Copy link
Author

@AliAlimohammadi AliAlimohammadi left a 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-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.44%. Comparing base (13710a7) to head (d92d273).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #957      +/-   ##
==========================================
+ Coverage   95.39%   95.44%   +0.05%     
==========================================
  Files         332      333       +1     
  Lines       21496    21522      +26     
==========================================
+ Hits        20506    20542      +36     
+ Misses        990      980      -10     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants