码迷,mamicode.com
首页 >  
搜索关键字:find    ( 24186个结果
【LeetCode】219 - Contains Duplicate II
Given an array of integers and an integerk, find out whether there there are two distinct indicesiandjin the array such thatnums[i] = nums[j]and the d...
分类:其他好文   时间:2015-08-02 21:25:01    阅读次数:111
DFS/BFS(同余模) POJ 1426 Find The Multiple
题目传送门 1 /* 2 题意:找出一个0和1组成的数字能整除n 3 DFS:200的范围内不会爆long long,DFS水过~ 4 */ 5 /************************************************ 6 Author :Ru...
分类:其他好文   时间:2015-08-02 21:15:31    阅读次数:154
Search for a Range
Given a sorted array of integers, find the starting and ending position of a given target value. Your algorithm's runtime complexity must be in the order of O(log n). If the target is not found ...
分类:其他好文   时间:2015-08-02 20:09:21    阅读次数:117
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, where in...
分类:其他好文   时间:2015-08-02 18:20:21    阅读次数:112
《Git版本控制管理》第二部分:一些命令
part2基本概念1.find .git -查看git的目录结构2.git ls-files --stage -查看索引状态下暂存文件及其blob对象(16进制的提交码)//不用管(树和标签)...
分类:其他好文   时间:2015-08-02 18:04:25    阅读次数:117
【LeetCode】217 - Contains Duplicate
Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the arr...
分类:其他好文   时间:2015-08-02 16:35:11    阅读次数:114
HDU 1599 find the mincost route 最小路(最小环)
题意:给一个带权无向图,求其最小环的路径权之和。思路: (1)DFS可以做,实现了确实可以,只是TLE了。量少的时候应该还是可以水一下的。主要思路就是,深搜过程如果当前点搜到一个点访问过了,而其不是当前点的父亲,则肯定有环,可以更新答案。深搜过程要记录路径和,父亲,是否访问过等等信息,因为图可能有....
分类:其他好文   时间:2015-08-02 16:23:19    阅读次数:121
Leetcode: word search
July 6, 2015Problem statement:Word SearchGiven a 2D board and a word, find if the word exists in the grid.The word can be constructed from letters of ...
分类:其他好文   时间:2015-08-02 14:55:34    阅读次数:103
Linxu命令与文件的搜索 - which, whereis, locate, find
which (寻找『运行档』) [root@www ~]# which [-a] command 选项或参数: -a :将所有由 PATH 目录中可以找到的命令均列出,而不止第一个被找到的命令名称 范例一:分别用root与一般帐号搜寻 ifconfig 这个命令的完整档名 [root@www ~]# which ifconfig /sbin/ifconfig [ro...
分类:其他好文   时间:2015-08-02 13:45:13    阅读次数:129
[leedcode 162] Find Peak Element
A peak element is an element that is greater than its neighbors.Given an input array wherenum[i] ≠ num[i+1], find a peak element and return its index....
分类:其他好文   时间:2015-08-02 13:14:46    阅读次数:105
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!