The example for this question is poor


  • 0
    V

    The wording of the example's explanation does not make it clear if 2 is being returned because it is highest degree, what number has the highest degree, or "length of shortest contiguous subarray that has the same highest degree of the original array"

    Now that I understand the problem it makes sense, but I definitely think a better example could have been chosen.

    Also, the title has almost nothing to do the with the question, as evidenced by the fact that the default function name is far from what the title is.


Log in to reply
 

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