Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Create Water_Jug_Problem.js function in the Recursive section#1751

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
swappy-2003 wants to merge15 commits intoTheAlgorithms:master
base:master
Choose a base branch
Loading
fromswappy-2003:master

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 commentedOct 24, 2024
edited
Loading

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 freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@anandfreshanandfreshanandfresh approved these changes

@raklaptudirmraklaptudirmAwaiting requested review from raklaptudirmraklaptudirm is a code owner

@appgurueuappgurueuAwaiting requested review from appgurueuappgurueu is a code owner

At least 2 approving reviews are required to merge this pull request.

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@swappy-2003@codecov-commenter@anandfresh

[8]ページ先頭

©2009-2025 Movatter.jp