Skip to content
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 Dynamic Programming Algorithms #776

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

ganeshvenkatasai
Copy link
Contributor

This PR adds dynamic programming algorithms essential for competitive programming, interview preparation, and real world applications.

The following algorithms have been added:

Partition Problem
Maximum Subarray Sum (Kadane's Algorithm)
Longest Palindromic Substring
Word Break Problem
Egg Dropping Problem
Tiling Problems
Dice Throw Problem
Burst Balloons
Wildcard Matching
Interleaving Strings
Optimal Binary Search Tree
Longest Arithmetic Subsequence

Changes:
Added implementations for each of the above algorithms using dynamic programming.
Developed corresponding test cases to validate the functionality of the algorithms.

This PR fixes #775

@codecov-commenter
Copy link

codecov-commenter commented Jan 14, 2025

Codecov Report

Attention: Patch coverage is 98.75000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 87.83%. Comparing base (6d6b06e) to head (9f76504).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
dynamic/eggdropping.go 88.88% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #776      +/-   ##
==========================================
+ Coverage   87.47%   87.83%   +0.35%     
==========================================
  Files         241      254      +13     
  Lines        7931     8187     +256     
==========================================
+ Hits         6938     7191     +253     
- Misses        839      841       +2     
- Partials      154      155       +1     

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

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.

Add Missing Dynamic Programming Algorithms
2 participants