![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
leetcode2019
HxShine
这个作者很懒,什么都没留下…
展开
-
leetcode 两数相加
# Definition for singly-linked list. # class ListNode(object): # def __init__(self, x): # self.val = x # self.next = None class Solution(object): def addTwoNumbers(self, l1, l...原创 2020-02-04 23:36:01 · 96 阅读 · 0 评论 -
leetcode1 two sum
https://leetcode.com/problems/two-sum/ 1 C++ 遍历两次,时间复杂度O(n^2),空间复杂度O(1) class Solution { public: vector<int> twoSum(vector<int>& nums, int target) { vector<int&...原创 2019-10-21 23:12:39 · 131 阅读 · 0 评论