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

Round pieces Wrong test case #5

Open
umialpha opened this issue Nov 7, 2018 · 0 comments
Open

Round pieces Wrong test case #5

umialpha opened this issue Nov 7, 2018 · 0 comments

Comments

@umialpha
Copy link

umialpha commented Nov 7, 2018

 arr = new double[]{1.2, 2.5, 3.6, 4.0};
 res = sol.roundUp(arr);
assertEquals(4, res[0]);
assertEquals(3, res[1]);
 assertEquals(2, res[2]);
 assertEquals(1, res[3]);

I think the answer might be 1, 2, 4, 4

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

No branches or pull requests

1 participant