Ad
  • Custom User Avatar

    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?

  • Custom User Avatar

    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