What is wrong with my output?


#1

A : [ 4, 7, -4, 2, 2, 2, 3, -5, -3, 9, -4, 9, -7, 7, -1, 9, 9, 4, 1, -4, -2, 3, -3, -5, 4, -7, 7, 9, -4, 4, -8 ]B : -3

Your function returned the following :

6 8

The expected returned value :

4 8


#2

don’t overwrite the same numbers in map. Looks like the test code wants to choose the 1st number if the same one is repeating.