火星上期待

文章
6
资源
0
加入时间
2年10月21天

Array 两数之和two sum Rust python C++

class Solution: def twoSum(self, nums: List[int], target: int) -> List[int]: n = len(nums) for i in range(n): for j in range(i + 1, n): if nums[i] + nums[j] == target: return [i...

Work Scheduling(带反悔的贪心)

https://www.luogu.org/problem/P2949题目描述Farmer John has so very many jobs to do! In order to run the farm efficiently, he must make money on the jobs he does, each one of which takes ju...