摘要: class Solution: def lengthOfLongestSubstring(self, s: str) -> int: # 字符串str。找出其中不含有重复字符的最长子串的长度。 hash_set = set() n = len(s) r = 0 res = 0 for i in ra 阅读全文
posted @ 2020-05-02 22:41 L1m1t 阅读(118) 评论(0) 推荐(0) 编辑
摘要: # Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class Solution: def mergeTwoLists(se 阅读全文
posted @ 2020-05-02 22:39 L1m1t 阅读(91) 评论(0) 推荐(0) 编辑