Suppose you are at a party with n people (labeled from 0 to n - 1) and among them, there may exist one celebrity. The definition of a celebrity is tha ...
分类:
其他好文 时间:
2016-09-15 06:25:01
阅读次数:
180
Given an array of n integers nums and a target, find the number of index triplets i, j, k with 0 <= i < j < k < n that satisfy the condition nums[i] + ...
分类:
其他好文 时间:
2016-09-15 06:23:40
阅读次数:
200
浏览器输http://updates.jenkins-ci.org/update-center.json?id=default&version=2.7.4发现跳转到清华大学的一个代理服务器上了https://mirrors.tuna.tsinghua.edu.cn/jenkins/updates/c ...
分类:
Web程序 时间:
2016-09-14 23:21:45
阅读次数:
552
查找某个目录下所有的sql文件时,使用以下命令 find /opt/ -name *.sql 结果是报错,这个命令是查找 *.sh的那个文件,而不是sh结尾的全部文件。 如果查找的文件名中有通配符,需要加引号 find /opt/ -name '*.sql' [查找完执行的action] # -pr ...
分类:
其他好文 时间:
2016-09-14 18:38:27
阅读次数:
167
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 or ...
分类:
其他好文 时间:
2016-09-14 11:06:13
阅读次数:
220
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 ...
分类:
其他好文 时间:
2016-09-14 09:30:54
阅读次数:
117
打开VS2010:工具--》选项--》》调试--》符号接下来就是选择Microsoft,然后确认 接着随便编译一个程序,过程会灰常的慢。 看到此目录下符号缓存了吗?C:\Users\kjqin\AppData\Local\Temp\SymbolCache 找到这个目录拷贝出来,找个地方存放。接下来就 ...
分类:
数据库 时间:
2016-09-13 16:33:47
阅读次数:
178
You are given a string, s, and a list of words, words, that are all of the same length. Find all starting indices of substring(s) in s that is a conca ...
分类:
其他好文 时间:
2016-09-13 16:32:33
阅读次数:
124
select选中索引有好多方式, 这两种方式取不到索引值这两种方式取不到索引值这两种方式取不到索引值这两种方式取不到索引值 $('#someId').find('option:selected').selectedIndex; $('#someId').find('option:selected') ...
分类:
Web程序 时间:
2016-09-13 16:09:11
阅读次数:
157
104. Maximum Depth of Binary Tree Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from th ...
分类:
其他好文 时间:
2016-09-13 13:29:52
阅读次数:
150