Rotate ImageYou are given annxn2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?分析:rota...
分类:
其他好文 时间:
2015-05-11 14:41:11
阅读次数:
121
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-05-11 12:27:20
阅读次数:
115
解决方法:清空svn的队列1.下载sqlite3.exe 2.找到你项目的.svn文件,查看是否存在wc.db3.将sqlite3.exe放到.svn的同级目录4.启动cmd执行sqlite3 .svn/wc.db "select * from work_queue"5.看到很多记录,下一步执行de...
分类:
其他好文 时间:
2015-05-11 12:24:17
阅读次数:
114
//给一棵树,每次操作可以将包括顶点1的连通子集的所有点的节点加1或减1
//问最少几次操作使得这棵树的所有顶点的值都为0
//以1为根节点建树
//将加和减分开考虑,用up[u],down[u]表示以u为跟节点的子树中需要加的操作
//最大为up[u] ,需要减的操作最大为down[u]
//其余的加和减的操作则可以在处理这两个操作时一起覆盖
//在将u的子数全都处理完后u点的值由...
分类:
其他好文 时间:
2015-05-11 09:02:08
阅读次数:
104
Problem Description
Bob is a strategy game programming specialist. In his new city building game the gaming environment is as follows: a city is built up by areas, in which there are streets, trees,fa...
分类:
其他好文 时间:
2015-05-11 09:00:54
阅读次数:
221
题目https://leetcode.com/problems/two-sum/Given an array of integers, find two numbers such that they add up to a specific target number.The function tw...
分类:
其他好文 时间:
2015-05-11 01:15:36
阅读次数:
177
如果现在能够组成1...x 的面值,加上一种 x+1 面值的纸币,就能组成 1 ... x + C * (x + 1)的面值。
因为如果面值是 k x+1 面值的纸币,并用原来的纸币组成
k % (x + 1),就得到了 k 。
每次添加不能被表示的最小面值的纸币是最优的。
Problem
Up until today, the nation you live in ha...
分类:
其他好文 时间:
2015-05-10 22:32:43
阅读次数:
248
1.SURF 全称 speed up robust feature 是加速版的SIFT2.如何提取SURF特征?两步:检测和描述检测特征点描述特征点3.什么样的点是特征点? 它首先是图像中得一个点,这个点具有这样一些特性:容易被检测到,只要这个点所对应的那个物体还在摄像头的视野范围内,那么这个点就....
分类:
其他好文 时间:
2015-05-10 22:12:28
阅读次数:
313
Description
Zuosige always has bad luck. Recently, he is in hospital because of pneumonia. While he is taking his injection, he feels extremely bored. However, clever Zuosige comes up with a new ga...
分类:
其他好文 时间:
2015-05-10 20:35:16
阅读次数:
150
Description
Zuosige always has bad luck. Recently, he is in hospital because of pneumonia. While he is taking his injection, he feels extremely bored. However, clever Zuosige comes up with a new ga...
分类:
其他好文 时间:
2015-05-10 20:33:26
阅读次数:
142