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.
I get the following Output for the Sample:
should support finding peaks expected: SolutionTest$1<{pos=[3, 7], peaks=[6, 3]}> but was: java.util.HashMap<{pos=[3, 7], peaks=[6, 3]}>
So the code works but the Output is wrong?
Tried to solve this in Java and none of the usual methods of the Node class work. There is no wa to solve this without knowing how a Node is implemented