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

Create Water_Jug_Problem.js function in the Recursive section #1751

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

Conversation

swappy-2003
Copy link

Describe your change:

Add an algorithm (Water Jug Problem using Breadth-First Search).
Fix a bug or typo in an existing algorithm.

Documentation change.

This PR adds the Water Jug Problem algorithm using Breadth-First Search (BFS) to determine if it is possible to measure exactly targetAmount using two jugs of given capacities.
Checklist:

I have read CONTRIBUTING.md.
This pull request is all my own work -- I have not plagiarized.
I know that pull requests will not be merged if they fail the automated tests.
This PR only changes one algorithm file. To ease review, please open separate PRs for separate algorithms.
All new JavaScript files are placed inside an existing directory.
All filenames use the UpperCamelCase (PascalCase) style.

add the water jug problem solving function
@codecov-commenter
Copy link

codecov-commenter commented Oct 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.80%. Comparing base (55ff0ad) to head (12aab08).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1751      +/-   ##
==========================================
+ Coverage   84.76%   84.80%   +0.04%     
==========================================
  Files         378      379       +1     
  Lines       19738    19791      +53     
  Branches     2957     2971      +14     
==========================================
+ Hits        16731    16784      +53     
  Misses       3007     3007              

☔ 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.

2 participants