摘要: # Definition for singly-linked list. # class ListNode(object): # def __init__(self, x): # self.val = x # self.next = None class Solution(object): def 阅读全文
posted @ 2021-07-26 18:09 KIKI_FAN 阅读(26) 评论(0) 推荐(0) 编辑
摘要: class Solution(object): def twoSum(self, nums, target): """ :type nums: List[int] :type target: int :rtype: List[int] """ #有序-双指针 l, r = 0, len(nums) 阅读全文
posted @ 2021-07-26 17:27 KIKI_FAN 阅读(9) 评论(0) 推荐(0) 编辑