Skip to content

Add input validation to coin change algorithms - #1878

Open
MayankSharma-2812 wants to merge 7 commits into
TheAlgorithms:masterfrom
MayankSharma-2812:add-validation-to-coin-change
Open

Add input validation to coin change algorithms#1878
MayankSharma-2812 wants to merge 7 commits into
TheAlgorithms:masterfrom
MayankSharma-2812:add-validation-to-coin-change

Conversation

@MayankSharma-2812

Copy link
Copy Markdown

Improves robustness by validating inputs and handling edge cases while preserving the existing dynamic programming logic.

@codecov-commenter

codecov-commenter commented Jan 30, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 79.83193% with 24 lines in your changes missing coverage. Please review.
✅ Project coverage is 85.84%. Comparing base (08d8c6b) to head (ff5be5b).
⚠️ Report is 1 commits behind head on master.

Files with missing linesPatch %Lines
Dynamic-Programming/CoinChange.js79.48%8 Missing ⚠️
Sliding-Windows/LongestSubarrayWithSumAtMost.js62.50%6 Missing ⚠️
Search/BinarySearch.js66.66%4 Missing ⚠️
Sorts/BubbleSort.js82.60%4 Missing ⚠️
Sorts/SelectionSort.js71.42%2 Missing ⚠️
Additional details and impacted files
@@ Coverage Diff @@## master #1878 +/- ##
==========================================
- Coverage 85.91% 85.84% -0.08% 
==========================================
Files 379 379 Lines 19778 19839 +61 Branches 3015 3047 +32 ==========================================
+ Hits 16993 17030 +37 - Misses 2785 2809 +24 

☔ View full report in Codecov by Harness.
📢 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for freeto 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

@MayankSharma-2812@codecov-commenter