用法 find [path] 内容参数 -print: find命令将匹配的文件输出到标准输出 -exec: find命令对匹配的文件执行该参数所给出的shell命令。相应命令的形式为'command' { } \;,注意{ }和\;之间的空格。 find -exec rm -rf {}...
分类:
系统相关 时间:
2015-11-04 21:09:16
阅读次数:
304
题目链接:https://leetcode.com/problems/median-of-two-sorted-arrays/题目:There are two sorted arraysnums1andnums2of size m and n respectively. Find the media...
分类:
其他好文 时间:
2015-11-04 20:59:15
阅读次数:
185
Scenario Master – Master replication MasterA is a client facing server MasterB is a warm standby server (read only) MasterB restarted abruptly and when instances were braught back up MasterA (it’...
分类:
其他好文 时间:
2015-11-04 15:00:34
阅读次数:
187
判断linux文件修改时间后执行操作创建脚本vi/var/tomcat/find.sh#!/bin/basha=`stat-c%Y/var/tomcat/logs/catalina.out`//获取文件的修改时间(秒为单位)b=`date+%s`//获取当前系统的时间(秒为单位)if[$[$b-$a]-gt1800];//判断当前时间和文件修改时间差(30分钟)then/sbin/s..
分类:
系统相关 时间:
2015-11-04 14:55:45
阅读次数:
216
题目:
Given an unsorted array of integers, find the length of the longest consecutive elements sequence.
For example,
Given [100, 4, 200, 1, 3, 2],
The longest consecutive elements sequence is [1,...
分类:
其他好文 时间:
2015-11-04 11:32:42
阅读次数:
181
QuestionGiven a string containing just the characters'('and')', find the length of the longest valid (well-formed) parentheses substring.For"(()", the...
分类:
其他好文 时间:
2015-11-04 09:23:02
阅读次数:
136
原题链接在这里:https://leetcode.com/problems/find-median-from-data-stream/维护两个堆,一个maxHeap用来存较小的一半数,一个minHeap用来存较大的一半数。每次添加时看minHeap的root是不是小于 num, 若是就把num加在m...
分类:
其他好文 时间:
2015-11-04 08:15:49
阅读次数:
190
QuestionGiven a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique lo...
分类:
其他好文 时间:
2015-11-04 01:56:54
阅读次数:
182
/** * Created by icecookstar on 2015/11/3. */public class BinarySearch { private static int binarySearch(int[] matrix, int i, int j, int find) { ...
分类:
其他好文 时间:
2015-11-04 00:25:56
阅读次数:
148
Write a program to find the node at which the intersection of two singly linked lists begins.For example, the following two linked lists:A: a...
分类:
其他好文 时间:
2015-11-03 22:47:35
阅读次数:
149