Leetcode 697. Degree of an Array 最大频率数字的最短子数组 Python实现
题目:Givenanon-emptyarrayofnon-negativeintegersnums,thedegreeofthisarrayisdefinedasthemaximumfrequencyofanyoneofitselements.Yourtaskistofindthesmallestpossiblelengthofa(contiguous)subarrayofnums,thathas