Find your present! Problem Description In the new year party, everybody will get a "special present".Now it's your turn to get your special present, a ...
分类:
其他好文 时间:
2016-05-13 20:42:22
阅读次数:
258
Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of ...
分类:
其他好文 时间:
2016-05-13 17:13:44
阅读次数:
148
find the safest road Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 10714 Accepted Submission(s ...
分类:
其他好文 时间:
2016-05-13 17:11:09
阅读次数:
102
Linux 命令大全 1、文件管理 cat chattr chgrp chmod chown cksum cmp diff diffstat file find git gitview indent cut ln less locate lsattr mattrib mc mdel mdir mkt ...
分类:
系统相关 时间:
2016-05-13 17:00:29
阅读次数:
267
18.12 Given an NxN matrix of positive and negative integers, write code to find the submatrix with the largest possible sum. 这道求和最大的子矩阵,跟LeetCode上的Max ...
分类:
其他好文 时间:
2016-05-13 14:23:24
阅读次数:
211
https://leetcode.com/problems/palindrome-pairs/ Given a list of unique words. Find all pairs of distinct indices (i, j) in the given list, so that the ...
分类:
其他好文 时间:
2016-05-13 14:12:43
阅读次数:
232
http://www.cnblogs.com/xrwang/archive/2010/02/09/HowToUseContour.html 作者:王先荣 前言 轮廓是构成任何一个形状的边界或外形线。前面讲了如何根据色彩及色彩的分布(直方图对比和模板匹配)来进行匹配,现在我们来看看如何利用物体的轮廓。 ...
分类:
其他好文 时间:
2016-05-13 13:44:23
阅读次数:
348
(转) 并查集由一个整数型的数组和两个函数构成。数组pre[]记录了每个点的前导点是什么,函数find是查找,join是合并。 int pre[1000 ]; int find(int x) //查找根节点 { int r=x; while ( pre[r ] != r ) //返回根节点 r r= ...
分类:
其他好文 时间:
2016-05-13 13:11:28
阅读次数:
154
Linux中find常见用法示例 ·find path -option [ -print ] [ -exec -ok command ] {} \; find命令的参数; pathname: find命令所查找的目录路径。例如用.来表示当前目录,用/来表示系统根目录。-print: find命令将匹 ...
分类:
系统相关 时间:
2016-05-13 12:49:16
阅读次数:
247
题目: Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which the ...
分类:
其他好文 时间:
2016-05-13 12:42:30
阅读次数:
114