码迷,mamicode.com
首页 >  
搜索关键字:not find    ( 24186个结果
4Sum
题目 Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all unique quadruplets in the array which gives the sum of target. Note: ...
分类:其他好文   时间:2014-06-18 12:17:57    阅读次数:179
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...
分类:其他好文   时间:2014-06-18 12:05:44    阅读次数:244
Longest Common Prefix
题目 Write a function to find the longest common prefix string amongst an array of strings. 方法 从第一个字符开始,判断是否相同。 public String longestCommonPrefix(String[] strs) { if (strs ...
分类:其他好文   时间:2014-06-18 11:18:30    阅读次数:205
3Sum Closest
题目 Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. You may assume that each input would ...
分类:其他好文   时间:2014-06-17 22:39:41    阅读次数:274
3Sum
题目 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 zero. Note: Elements in a tr...
分类:其他好文   时间:2014-06-17 22:04:49    阅读次数:292
LeetCode:Edit Distance
Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.) You have the following 3 operations permitted...
分类:其他好文   时间:2014-06-17 21:43:38    阅读次数:219
学习用CMake来编写Qt程序
最近开始学习CMake,因为项目需求需要用到Qt,自带的qmake会出现许多问题(比如文件修改之后有时候qmake不会侦测到不会重新编译,需要手动去编译等),于是开始尝试使用CMake来编写Qt程序,顺便学习一下怎么用CMake来使用find_package,也算给自己一次学习的机会。     切入正题,CMake对于一些有名的库都有自带文件夹中Modules里.cmake文件查询的支持,比如你...
分类:其他好文   时间:2014-06-17 19:17:05    阅读次数:255
Linux查找多个类似但是不同名的文件并且重命名
这个题目据说是百度一面的面试题,Linux题:查找以core.1,core.2....形式命名的文件,然后将这些文件名改成bak。core.1,bak.core.2,.........
分类:系统相关   时间:2014-06-17 19:02:24    阅读次数:368
Linux Shell常用命令总结
1. find find pathname -options [-print -exec -ok] 让我们来看看该命令的参数: pathname find命令所查找的目录路径。例如用.来表示当前目录,用/来表示系统根目录。 -print find命令将匹配的文件输出到标准输出。 -exec ...
分类:系统相关   时间:2014-06-17 14:38:57    阅读次数:383
Leetcode: Longest Palindromic Substring
Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest pa...
分类:其他好文   时间:2014-06-17 14:35:50    阅读次数:297
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!