摘要:#encoding:utf-8 class Solution: def makeSimilar(self, nums, target): nums.sort(key=lambda x: (x % 2, x)) # sort先按照第一个坐标排序, 所以偶数时候排到前面, 奇数排到后面 target.s
阅读全文
posted @ 2022-10-24 17:12
contact me:wechat 15122306087
posted @ 2022-10-24 17:12
posted @ 2022-10-24 16:52
posted @ 2022-10-21 19:20
posted @ 2022-10-20 22:48
posted @ 2022-10-14 09:46
posted @ 2022-10-11 16:54