
python
constbh
这个作者很懒,什么都没留下…
展开
-
leetcode Longest Substring Without Repeating Characters python
学习python语法,用py写发尺取学习了pthon中的map要注意特判空字符串class Solution: def lengthOfLongestSubstring(self, s): """ :type s: str :rtype: int """ dict = {}原创 2018-01-31 10:06:17 · 210 阅读 · 0 评论 -
leetcode Median of Two Sorted Arrays python
对于两个已排序的数组,在o(n+m)的时间内就可以按序存储在一个大数组里面,这里学习python语法,记录代码.class Solution: def findMedianSortedArrays(self, nums1, nums2): """ :type nums1: List[int] :type nums2: List[int]原创 2018-02-01 19:08:21 · 327 阅读 · 0 评论