Point # 3 doesn't make sense, logically & practically. Just having 2 non-opposite directions adjoining to eachother, doesn't reduce their effects overall unless you have distance in the play.
Then the task explanation needs updation...
if i follow {"NORTH","WEST","SOUTH","EAST"}, i am wasting my energy because it will bring me to the same point. The sequence doesn't matter...
Is it a good practice to have 0 or negative delta value in test cases while comparing floats or doubles?
Need to correct the typo in Java sameple test case
@TestMethodOrder(MethodOrderer.O[e]rderAnnotation.class)
The description should be updated to highlight column overflow scenario
The random test cases seem to not generate input values for the last column (6th one)
Terminology correction needed - Visa, Mastercard, AMEX are not card issuers - your bank is a card issuer. Mastercard, Visa, etc are card networks.
Good kata to try concurrency based solution.
What is a use of the first argument, int n? Its not needed, i believe.
For Java, in your testcases, you may want to use
assertArrayEquals
instead ofassertEquals
Thank you, Making a copy of
arr
did the trick.I didn't notice the feature of preloaded snippet. Thanks for pointing.
Resolved. Thank you for the pointer!
Noted. On it.
This comment is hidden because it contains spoiler information about the solution
What is going on?
Time: 2708ms Passed: 0Failed: 4Exit Code: 1
Test Results:
Fixed_Tests
Basic_Tests
Expected: equal to [8.6667, 6.6667]
Actual: [8.6667, 6.6667]
Random_Tests
Moderate_Values
Expected: equal to [33, 37.3333]
Actual: [33, 37.3333]
High_Values
Expected: equal to [642.333, 895.667]
Actual: [642.333, 895.667]
Huge_Values
Expected: equal to [4697.33, 6422]
Actual: [4697.33, 6422]
Point # 3 doesn't make sense, logically & practically. Just having 2 non-opposite directions adjoining to eachother, doesn't reduce their effects overall unless you have distance in the play.
Then the task explanation needs updation...
if i follow {"NORTH","WEST","SOUTH","EAST"}, i am wasting my energy because it will bring me to the same point. The sequence doesn't matter...
Following test cases seem invalid;
Please check other random test cases as well...
Loading more items...