题目:
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...
分类:
编程语言 时间:
2015-01-08 15:29:48
阅读次数:
162
import random
#warning: x and y confusing
sx = 10
sy = 10
dfs = [[0 for col in range(sx)] for row in range(sy)]
maze = [[' ' for col in range(2*sx+1)] for row in range(2*sy+1)]
#1:up 2:down 3:left 4...
分类:
编程语言 时间:
2015-01-08 15:24:22
阅读次数:
158
在导入一个Maven项目之后发现有一个如下的错误:
Project configuration is not up-to-date with pom.xml. Run project configuration update
解决办法1:
较老的Eclipse版本:
在项目上右键——【Maven】——【Update Project Configuration……】这...
分类:
其他好文 时间:
2015-01-08 15:14:46
阅读次数:
169
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 two nu...
分类:
其他好文 时间:
2015-01-08 13:03:40
阅读次数:
106
To set up JIRA on server (Windows) through remote desktop connection, first we need to download JIRA from Atlassian. There are JIRA installer and WAR ...
分类:
其他好文 时间:
2015-01-08 12:43:57
阅读次数:
164
Follow up for problem "Populating Next Right Pointers in Each Node".What if the given tree could be any binary tree? Would your previous solution stil...
分类:
编程语言 时间:
2015-01-08 07:06:05
阅读次数:
216
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 two numbers such that they add up to the target, whe...
分类:
其他好文 时间:
2015-01-07 23:40:44
阅读次数:
362
nmaprpm-ivhnmap-4.11-1.1.i386.rpm(安装包)nmap-sp192.168.18.0/24(扫描这个网段有多少IP)UP是回包down是不会包
分类:
其他好文 时间:
2015-01-07 19:12:30
阅读次数:
175
题目链接:
找规律的一道题,row往前进2步的话,如果投影在zigzag的路径上,则是走了一个V字形,也就是说每一行的相邻2步,都是走了同样的投影距离。然后主要抓到步数计算的规律即可。
*注意step为0的情况,这时候要pick up最大的步长继续走。
*注意row为1行的情况,最早判断,避免死循环,因为步长是0。
*一直尝试po讲解照片,但是无论如何都显示不出来。有空搞定了传张照...
分类:
其他好文 时间:
2015-01-07 18:55:23
阅读次数:
133
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 two numbers such that they add up to the target, whe...
分类:
其他好文 时间:
2015-01-07 16:50:55
阅读次数:
158