题目要求:Combination Sum IIGiven a collection of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate number...
分类:
其他好文 时间:
2015-02-07 20:18:42
阅读次数:
122
SELECTTOP页大小*FROM(SELECTROW_NUMBER()OVER(ORDERBYid)ASRowNumber,*FROMtable1)AWHERERowNumber>页大小*(页数-1)
分类:
数据库 时间:
2015-02-07 20:16:25
阅读次数:
166
题目要求:Combination SumGiven a set of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT...
分类:
其他好文 时间:
2015-02-07 20:15:34
阅读次数:
132
Problem DescriptionThere is a permutation without two numbers in it, and now you know what numbers the permutation has. Please find the two numbers it...
分类:
其他好文 时间:
2015-02-07 18:48:10
阅读次数:
161
Binary search is a famous question in algorithm. For a given sorted array (ascending order) and a target number, find the first index of this number i...
分类:
其他好文 时间:
2015-02-07 18:40:45
阅读次数:
117
上一篇写了DFS的邻接矩阵和邻接表的,这篇再写一下BFS的
先大概讲一下BFS , 全名广度优先搜索,没有回溯和探查,逐层遍历,采用队列实现
先访问当前顶点v, 然后访问v的各个未被访问过的邻接顶点,然后在一次访问v的各个邻接顶点的未被访问的邻接顶点
代码实现如下 :
void BFS (Graph &G , int v ) {
int i , w , n = G.Number(); /...
分类:
编程语言 时间:
2015-02-07 17:29:05
阅读次数:
183
简介
前一篇讲解到了将用蓝色筛选后的图片,再一次灰阶/二值化。现在从这里继续讲解。
矩形检测
因为车牌是一个矩形。所以接着将又一次二值化之后的图片,进行膨胀,之后在进行矩形检测。框选出可能是车牌号的矩形区域。
代码如下:
int** car_License_box(Mat& mat1, Mat& mat2, int* number){
Mat threshold_out...
分类:
其他好文 时间:
2015-02-07 17:25:43
阅读次数:
281
题目描述:Reverse Nodes in k-GroupGiven a linked list, reverse the nodes of a linked listkat a time and return its modified list.If the number of nodes is ...
分类:
其他好文 时间:
2015-02-07 17:22:26
阅读次数:
146
Problem DescriptionA number sequence is defined as follows:f(1) = 1, f(2) = 1, f(n) = (A * f(n - 1) + B * f(n - 2)) mod 7.Given A, B, and n, you are t...
分类:
其他好文 时间:
2015-02-07 17:11:19
阅读次数:
157
题目描述:Letter Combinations of a Phone NumberGiven a digit string, return all possible letter combinations that the number could represent.A mapping of d...
分类:
其他好文 时间:
2015-02-07 17:07:13
阅读次数:
191