Skip to content

Add check on "smallsNeeded" in makeChocolate solution.#26

Open
fearfulspoon wants to merge 1 commit intothe-winter:masterfrom
fearfulspoon:master
Open

Add check on "smallsNeeded" in makeChocolate solution.#26
fearfulspoon wants to merge 1 commit intothe-winter:masterfrom
fearfulspoon:master

Conversation

@fearfulspoon
Copy link

Original solution did not check if smallsNeeded was greater than the number of small bars. This causes the test case of makeChocolate(1, 2, 7) to return an incorrect solution of 2 small bars needed.

Original solution did not check if smallsNeeded was greater than the number of small bars. This causes the test case of makeChocolate(1, 2, 7) return an incorrect solution of 2 small bars needed.
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.

1 participant