sorting
Easy
Number | Note | Times |
---|---|---|
1051. Height Checker | ||
1122. Relative Sort Array | count ocurrence in arr1 with defaultdict, find unseen, set arr2, multiply with occurence | |
1365. How Many Numbers Are Smaller Than the Current Number | lambda row[k] with reverse | |
1637. Widest Vertical Area Between Two Points Containing No Points | sort and ignore the y, find max in a short way | |
2144. Minimum Cost of Buying Candies With Discount | ||
2357. Make Array Zero by Subtracting Equal Amounts |
Medium
Number | Note | Times |
---|---|---|
2089. Find Target Indices After Sorting Array | 1 loop, 2 count smaller and target, return list(range(...)) |