leetcode
ZuoYuYi
这个作者很懒,什么都没留下…
展开
-
函数式leetcode-3
class Solution(object): def lengthOfLongestSubstring(self, s): """ :type s: str :rtype: int """ max = 0 myStr = '' for char in s:原创 2016-11-04 12:16:19 · 485 阅读 · 0 评论 -
函数式leetcode-4
class Solution(object): def findMedianSortedArrays(self, nums1, nums2): """ :type nums1: List[int] :type nums2: List[int] :rtype: float """ l1 = len原创 2016-11-04 14:45:24 · 531 阅读 · 0 评论 -
函数式编程的记录1
原文 http://coolshell.cn/articles/10822.html 函数式编程 2013年12月27日陈皓发表评论阅读评论96,139 人阅读 当我们说起函数式编程来说,我们会看到如下函数式编程的长相: 函数式编程的三大特性: immutable data 不可变数据:像Clojure一样,默认上变量是不可变的,如果你要转载 2016-10-24 23:20:57 · 342 阅读 · 0 评论 -
函数式leetcode-1
python版本,2.7 class Solution(object): def twoSum(self, nums, target): """ :type nums: List[int] :type target: int :rtype: List[int] """ if target %原创 2016-11-01 16:06:22 · 704 阅读 · 0 评论 -
函数式leetcode-2
# 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, l2):原创 2016-11-01 18:14:59 · 369 阅读 · 0 评论