码迷,mamicode.com
首页 >  
搜索关键字:not find    ( 24186个结果
852. Peak Index in a Mountain Array
"https://leetcode.com/problems/peak index in a mountain array/" 给定一个 mountain 数组(满足A.length = 3,There exists some 0 A[i+1] ... A[A.length 1]),求其最大值 此题 ...
分类:其他好文   时间:2020-03-20 22:27:10    阅读次数:65
162. Find Peak Element
"https://leetcode.com/problems/find peak element/" 给定一个无序数组,且nums[i] != nums[i+1],找出其中的peak元素,即比左右两边的元素都要大的元素,可以假设nums[ 1] 和nums[n]都是负无穷,如果存在多个peak,只需 ...
分类:其他好文   时间:2020-03-20 20:15:39    阅读次数:51
编写shell脚本运行java项目
#!/bin/sh #查询删除源文件包 cd /srv/backups; find -name *.jar | xargs rm -rf echo "删除原备份成功 " #先查询/srv/zjzdd下的文件,然后备份文件到backups目录下,在删除源文件 cd /srv/zjzdd; cp /sr ...
分类:编程语言   时间:2020-03-20 15:41:47    阅读次数:90
二叉树中和为某一值的路径
题目描述 输入一颗二叉树的根节点和一个整数,打印出二叉树中结点值的和为输入整数的所有路径。路径定义为从树的根结点开始往下一直到叶结点所经过的结点形成一条路径。(注意: 在返回值的list中,数组长度大的数组靠前) 题目详解 find(root.left,target,res,new ArrayLis ...
分类:其他好文   时间:2020-03-20 13:10:47    阅读次数:68
[LintCode] 611. Knight Shortest Path
Given a knight in a chessboard (a binary matrix with 0 as empty and 1 as barrier) with a source position, find the shortest path to a destination posi ...
分类:其他好文   时间:2020-03-20 13:06:50    阅读次数:61
34. Find First and Last Position of Element in Sorted Array
"https://leetcode.com/problems/find first and last position of element in sorted array/" 给定一个有序数组,可能包含有重复元素,问target在数组中的起始位置和结束位置,要求复杂度 $O(logN)$ \ Ex ...
分类:其他好文   时间:2020-03-20 12:56:04    阅读次数:49
LC436. Find Right Interval
分析:求一个区间最邻近的右边的区间在数组中的索引位置,右侧区间头要大于等于左侧区间尾。用map存区间头对应的区间索引。 标准库有map自己的lower_bound函数,返回大于等于key的第一个值的iteraotr。找右侧最邻近区间就是找 lower_bound(intervals[i][1]) . ...
分类:其他好文   时间:2020-03-20 11:06:53    阅读次数:50
R语言基本操作
is.na and is.element is.na can use which, it finds specific rows, is.element can't, it is designed to find NA in a whole table d[is.na(d)] <- 0 is.ele ...
分类:编程语言   时间:2020-03-19 22:07:41    阅读次数:136
25+个常用Linux命令
本文并不会对所有命令进行详细讲解,只给出常见用法和解释。具体用法可以使用--help查看帮助或者直接通过google搜索学习。 --help 1、查找文件 根据名称查找/目录下的filename.txt文件。 find / -name filename.txt 递归查找所有的xml文件 find . ...
分类:系统相关   时间:2020-03-19 21:40:36    阅读次数:86
LeetCode | 0409. Longest Palindrome最长回文串【Python】
LeetCode 0409. Longest Palindrome最长回文串【Easy】【Python】【字符串】 Problem "LeetCode" Given a string which consists of lowercase or uppercase letters, find the ...
分类:编程语言   时间:2020-03-19 21:26:18    阅读次数:69
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!