- 博客(3)
- 收藏
- 关注
原创 day7
c++ /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */ class Solution { public: //递归解...
2020-03-07 20:30:51 70
原创 Day1
python: def twoSum(nums, target): lens = len(nums) j=-1 for i in range(lens): if (target - nums[i]) in nums: if (nums.count(target - nums[i]) == 1)&(target - nums...
2020-03-01 20:51:58 123
原创 day 1
nums.index(num2),查找 num2 的索引 Python def twoSum(nums, target): lens = len(nums) j=-1 for i in range(lens): if (target - nums[i]) in nums: if (nums.count(target - nums[i...
2020-03-01 20:49:17 114
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人