Given amxnmatrix, if an element is 0, set its entire row and column to 0. Do it in place.click to show follow up.Follow up:Did you use extra space?A s...
分类:
其他好文 时间:
2015-02-16 19:31:08
阅读次数:
187
欢迎大家阅读参考,如有错误或疑问请留言纠正,谢谢
Linked List Cycle
Given a linked list, determine if it has a cycle in it.
Follow up:
Can you solve it without using extra space?
一开始使用了复杂度O(n^2)的方法,但是超时了,使用两个指...
分类:
其他好文 时间:
2015-02-16 11:43:26
阅读次数:
140
欢迎大家阅读参考,如有错误或疑问请留言纠正,谢谢Linked List Cycle IIGiven a linked list, return the node where the cycle begins. If there is no cycle, return null.Follow up:
Can you solve it without using extra space?扩展问题
在...
分类:
其他好文 时间:
2015-02-16 11:42:22
阅读次数:
175
import urllib.requesturl="http://mm.taobao.com/json/request_top_list.htm?type=0&page=1"up=urllib.request.urlopen(url)#打开目标页面,存入变量upcont=up.read()#从up中...
分类:
编程语言 时间:
2015-02-16 10:10:29
阅读次数:
241
拓扑图如下: host1:10.20.10.70 host2:10.20.10.71 分别在主机1和主机2上创建一个ovs交换机: ovs-vsctl?add-br?ovs0
ip?link?set?ovs0?up 分别为ovs0添加一个port(br0在同一网段): ovs-vsctl?add-por...
分类:
数据库 时间:
2015-02-16 00:34:18
阅读次数:
290
Remove Duplicates from Sorted Array II
Total Accepted: 32492 Total
Submissions: 105872My Submissions
Question
Solution
Follow up for "Remove Duplicates":
What if duplicates are a...
分类:
其他好文 时间:
2015-02-16 00:33:14
阅读次数:
181
LeetCode 1 # TwoSum很有意思的问题.Two Sum Total Accepted: 63448 Total Submissions: 350576 My Submissions Question Solution
Given an array of integers, find two numbers such that they add up to a specific tar...
分类:
其他好文 时间:
2015-02-16 00:32:41
阅读次数:
181
You are given annxn2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?思路1:新建一个新的二维矩阵,原矩阵按...
分类:
其他好文 时间:
2015-02-15 19:22:15
阅读次数:
149
这几天,在vm box上运行centos时,突然出现了异常有规律的网卡,正常使用1,2分钟又关闭重置又正常的重复性的现象,
看着这个现象,回想现象发生前可能相关的几个操作:
1 使用yum update升级了centos的内核:经过测试,跟内核无关
2 怀疑centos系统内部的通信数据量大,导致驱动受不了?关闭了所有的非系统性的服务,还是照样;
3 怀疑驱动不稳定,切换成其它网卡还是不行...
分类:
数据库 时间:
2015-02-15 18:06:53
阅读次数:
244
本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/43835055
Follow up for "Remove Duplicates":
What if duplicates are allowed at most twice?
For example,
Given sorted array...
分类:
其他好文 时间:
2015-02-15 15:11:07
阅读次数:
178