2020 第 10 周 LeetCode 记录

Yiran at 
1365. How Many Numbers Are Smaller Than the Current Number 对数组升序排序,遍历排序后数组,判断是否与前一数字相同,若相同则该数字结果与前一结果相同,否则为当前索引。1234567891011121314151617class Solution(object): def smallerNumbersThanCurrent(self, nums): """ :type nums: List[int] :rtype: List[int] """ nums2 = so……