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

solution #442

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

solution #442

wants to merge 1 commit into from

Conversation

BodyaKutsyk
Copy link

No description provided.

Copy link

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job on implementing the getCoinCombination function and writing comprehensive test cases! 🎉 The code meets the task requirements and constraints, ensuring correct functionality. Just a small note: make sure to correct the expected result for the input value 25 in your test cases to [0, 0, 0, 1] to accurately reflect the coin combination of 1 quarter. Keep up the excellent work! 😊

✨ Please rate this review in the Platform's notification center. I will be grateful for your feedback! ✨

Comment on lines +59 to +63
it("should return [0, 1, 0, 0] for input value 25 (1 quarter)", () => {
const result = getCoinCombination(25);
const expectedResult = [0, 0, 0, 1];

expect(result).toEqual(expectedResult);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The expected result for the input value 25 is incorrect. The correct expected result should be [0, 0, 0, 1] since 25 cents can be represented by 1 quarter, not 1 nickel.

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