Given a binary tree, find its minimum depth. The minimum depth is the number of nodes along the shortest path from the root node down to the nearest l ...
分类:
编程语言 时间:
2016-05-06 20:30:52
阅读次数:
159
现象:当日下午,通过监控报警得知,该台服务器的CPU使用率非常高,已接近100%,见下图:处理过程:1.立刻登录服务器,用top命令查看是什么原因导致CPU使用率飙升,见下图:2.发现.chinaz{1461058进程占据了97%的CPU,确定该进程是可疑进程3.在系统上使用find/-name".chianz"命..
分类:
其他好文 时间:
2016-05-06 19:45:35
阅读次数:
141
Given an array of integers and an integer k, find out whether there are two distinct indices i and j in the array such that nums[i] = nums[j] and the ...
分类:
编程语言 时间:
2016-05-06 19:34:53
阅读次数:
171
今天写selenium用例的时候,遇见奇葩的问题,FF下是没有错误的,但是在chrome和ie下就会有问题,后来发现是 操作中点击一个按钮,在页面不可见,就会导致异常,解决方法如下: element = self.driver.find_element_by_id("id")self.driver. ...
分类:
其他好文 时间:
2016-05-06 19:18:15
阅读次数:
102
并查集(Union-find Sets)是一种非常精巧而实用的数据结构,它主要用于处理一些不相交集合的合并问题。一些常见的用途有求连通子图、求最小生成树的 Kruskal 算法和求最近公共祖先(Least Common Ancestors, LCA)等。 使用并查集时,首先会存在一组不相交的动态集合 ...
分类:
其他好文 时间:
2016-05-06 19:09:48
阅读次数:
164
题目:
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 triplet (a,b,c) must...
分类:
其他好文 时间:
2016-05-06 16:01:48
阅读次数:
113
一天一道LeetCode系列(一)题目
Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.
Each number in C may only be use...
分类:
其他好文 时间:
2016-05-06 15:35:39
阅读次数:
146
Problem Description
Give you a lot of positive integers, just to find out how many prime numbers there are.Input
There are a lot of cases. In each case, there is an integer N representing the num...
分类:
其他好文 时间:
2016-05-06 15:23:44
阅读次数:
114
Find - Ctrl+F
Replace - Ctrl+R
Find Next/Move to Next Occurence F3
Find Previous /Move to Previous Occurence Shift+F3
Find word at Caret - Ctrl+F3
Select All Occurences - Ctrl+Alt+Shift+J
Add se...
分类:
移动开发 时间:
2016-05-06 15:13:03
阅读次数:
358
一天一道LeetCode系列(一)题目
Given an unsorted integer array, find the first missing positive integer.
For example,
Given [1,2,0] return 3,
and [3,4,-1,1] return 2.
Your algorithm should run i...
分类:
其他好文 时间:
2016-05-06 14:50:16
阅读次数:
95