码迷,mamicode.com
首页 >  
搜索关键字:not find    ( 24186个结果
leetcode——Two Sum 两数之和(AC)
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...
分类:其他好文   时间:2014-06-09 23:14:45    阅读次数:264
[LeetCode] Max Points on a Line
Given n points on a 2D plane, find the maximum number of points that lie on the same straight line.思路:(1)点1到点n (a)以点1为参考点,求“点1”与“点2到点n”各个斜率下点的个数; (求出直...
分类:其他好文   时间:2014-06-08 22:30:56    阅读次数:266
[LeetCode OJ] Max Points on a Line—Given n points on a 2D plane, find the maximum number of points that lie on the same straight line.
//定义二维平面上的点struct Point{ int x; int y; Point(int a=0, int b=0):x(a),y(b){}};bool operator==(const Point& left, const Point& right){ return...
分类:其他好文   时间:2014-06-08 22:26:17    阅读次数:357
Load resources from classpath in Java--reference
In general classpath is the path where JVM can find .class files and resources of your application and in this tutorial we will see how to load resour...
分类:编程语言   时间:2014-06-08 22:20:57    阅读次数:371
POJ 2356 find multiple 鸽巢原理
POJ 2356 find multiple 题意: 输入一个正整数 N ,接着输入 N 和 正整数 nums[1], nums[2], ... ... , nums[N], 试问可否从这 N 个正整数中找出一组连续的数,它们的和能被 N 整除。 思路: 鸽巢原理,构造一个序列 sums[1] = nums[1], sums[2] = nums[1] + nums[2], ... ....
分类:其他好文   时间:2014-06-08 15:12:34    阅读次数:213
SEED-DIM3517环境搭建过程
前面的步骤按说明书上就没有问题,但在移植内核时,当进行到 make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- menuconfig 出现以下错误: *** Unable to find the ncurses libraries or the *** required header files. *** 'make menuco...
分类:其他好文   时间:2014-06-08 10:40:46    阅读次数:184
Maximum Depth of Binary Tree
题目 Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node. 方法 使用DFS对树进行遍...
分类:其他好文   时间:2014-06-08 10:26:33    阅读次数:207
[LeetCode] Longest Substring Without Repeating Characters [15]
题目:Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters for "abcabcbb" is "abc", which the length is 3. For "bbbbb" the longest substring is "b", with the length...
分类:其他好文   时间:2014-06-08 03:06:52    阅读次数:221
HDU 1247 Hat’s Words
Problem Description A hat’s word is a word in the dictionary that is the concatenation of exactly two other words in the dictionary. You are to find all the hat’s words in a dictionary.   In...
分类:其他好文   时间:2014-06-08 03:02:14    阅读次数:323
LeetCode——Two Sum
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...
分类:其他好文   时间:2014-06-08 02:12:04    阅读次数:216
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!