Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
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...
This comment is hidden because it contains spoiler information about the solution
Was already marked as spoiler.
Thank you for the pointer.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution