leetcode
iw·楊東
坚定梦想,追逐梦想
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
【leetcode】第四题:寻找两个有序数组的中位数(python3)
题目链接:https://leetcode-cn.com/problems/median-of-two-sorted-arrays/submissions/ class Solution: def findMedianSortedArrays(self, nums1: List[int], nums2: List[int]) -> float: i = 0 ...原创 2020-04-23 23:02:55 · 325 阅读 · 0 评论 -
【leetcode】第三题:无重复字符的最长子串(python3)
题目链接:https://leetcode-cn.com/problems/longest-substring-without-repeating-characters/ class Solution: def lengthOfLongestSubstring(self, s: str) -> int: if len(s) == 0: re...原创 2020-04-22 21:20:24 · 265 阅读 · 0 评论 -
【leetcode】第一题:两数之和(python3)
暴力破解: class Solution: def twoSum(self, nums: List[int], target: int) -> List[int]: delValue = 0 for i in range(len(nums)): delValue = target - nums[i] ...原创 2020-04-20 22:27:26 · 672 阅读 · 0 评论
分享