本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/42833739
Given a linked list, determine if it has a cycle in it.
Follow up:
Can you solve it without using extra space?
思路:...
分类:
其他好文 时间:
2015-01-18 10:35:13
阅读次数:
157
#!/usr/bin/python# Filename: backup_ver4.pyimportosimporttime# 1. The files and directories to be backed up are specified in a list.source = ['/home/s...
分类:
编程语言 时间:
2015-01-17 23:21:17
阅读次数:
249
1 题目Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the t...
分类:
其他好文 时间:
2015-01-17 11:07:27
阅读次数:
171
Description A common pastime for poker players at a poker table is to shuffle stacks of chips. Shuffling chips is performed by starting with two st...
分类:
其他好文 时间:
2015-01-16 23:40:54
阅读次数:
326
Follow up for "Unique Paths":Now consider if some obstacles are added to the grids. How many unique paths would there be?An obstacle and empty space i...
分类:
其他好文 时间:
2015-01-16 23:38:32
阅读次数:
178
题目:Follow up for "Remove Duplicates":What if duplicates are allowed at mosttwice?For example,Given sorted array A =[1,1,1,2,2,3],Your function should ...
分类:
编程语言 时间:
2015-01-16 23:36:59
阅读次数:
686
iven a binary tree, return thebottom-up level ordertraversal of its nodes' values. (ie, from left to right, level by level from leaf to root).For exam...
分类:
其他好文 时间:
2015-01-16 22:17:55
阅读次数:
292
/etc/init.d/networking restart #这种方式必须有/etc/network/interface文件ifconfig eth0 down #直接重启网卡ifconfig eth0 up
分类:
系统相关 时间:
2015-01-16 22:17:51
阅读次数:
265
1. Go to 'Extras' -> download and install 'Babel'.2. Set up '.htaccess' file, currently, we set up three languages:find '# The Friendly URLs part' in ...
分类:
其他好文 时间:
2015-01-16 20:48:12
阅读次数:
292
Follow up for "Unique Paths":
Now consider if some obstacles are added to the grids. How many unique paths would there be?
An obstacle and empty space is marked as 1 and 0 respectively
in the ...
分类:
其他好文 时间:
2015-01-15 23:54:55
阅读次数:
206