会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
hao.ma
http://weibo.com/haomase7en
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
10
11
12
13
14
15
16
17
18
···
23
下一页
2015年12月6日
leetcode Binary Tree Paths python
摘要: # Definition for a binary tree node.# class TreeNode(object):# def __init__(self, x):# self.val = x# self.left = None# sel...
阅读全文
posted @ 2015-12-06 14:26 hao.ma
阅读(211)
评论(0)
推荐(0)
2015年12月5日
interview collect
摘要: 1. binary tree inorder traversal 不能用recursive写 (LC原题)2. 比如有个数组F={1,3, 4, 5, 2, 0}, A=3, 那么F[A]=5, F[F[A]]=0, F[F[F[A]]]=1....这样下去求第N个数是多少. from: 1poin...
阅读全文
posted @ 2015-12-05 10:28 hao.ma
阅读(281)
评论(0)
推荐(0)
2015年12月1日
leetcode Divide Two Integers python
摘要: class Solution(object): def divide(self, dividend, divisor): """ :type dividend: int :type divisor: int :rtype: int ...
阅读全文
posted @ 2015-12-01 23:25 hao.ma
阅读(167)
评论(0)
推荐(0)
2015年11月29日
kmp
摘要:
阅读全文
posted @ 2015-11-29 23:48 hao.ma
阅读(122)
评论(0)
推荐(0)
leetcode implement strStr python
摘要: #kmp class Solution(object): def strStr(self, haystack, needle): """ :type haystack: str :type needle: str :rtype: int ...
阅读全文
posted @ 2015-11-29 21:05 hao.ma
阅读(158)
评论(0)
推荐(0)
leetcode Remove Element python
摘要: class Solution(object): def removeElement(self, nums, val): """ :type nums: List[int] :type val: int :rtype: int ...
阅读全文
posted @ 2015-11-29 20:05 hao.ma
阅读(140)
评论(0)
推荐(0)
leetcode Remove Duplicates from Sorted Array python
摘要: class Solution(object): def removeDuplicates(self,nums): if len(nums) <= 0: return 0 j=0 for i in range(0,len(nums)): if...
阅读全文
posted @ 2015-11-29 18:06 hao.ma
阅读(137)
评论(0)
推荐(0)
2015年11月27日
leetcode Reverse Nodes in k-Group python
摘要: # Definition for singly-linked list.# class ListNode(object):# def __init__(self, x):# self.val = x# self.next = Noneclass Solutio...
阅读全文
posted @ 2015-11-27 09:21 hao.ma
阅读(136)
评论(0)
推荐(0)
2015年11月25日
leetcode Swap Nodes in Pairs python
摘要: # Definition for singly-linked list.# class ListNode(object):# def __init__(self, x):# self.val = x# self.next = Noneclass Solutio...
阅读全文
posted @ 2015-11-25 23:08 hao.ma
阅读(133)
评论(0)
推荐(0)
nginx upstream setting
摘要: upstream proxy_1 { server 127.0.0.1:8080; #连接到上游服务器的最大并发空闲keepalive长连接数(默认是未设置,建议与Tomcat Connector中的maxKeepAliveRequests值一样) #当这个...
阅读全文
posted @ 2015-11-25 20:07 hao.ma
阅读(143)
评论(0)
推荐(0)
上一页
1
···
10
11
12
13
14
15
16
17
18
···
23
下一页
公告