Showing wrong answer

  • 1

    For this input it is giving output as wrong answer.
    [3,2,2,3] and val=3
    My answer is 2
    It is saying expected answer is [2,2].
    Now I am confused that I have to return and array or the count of elements (i. e. and integer).

Log in to reply

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.