就比1多了一点点 第13行,当nums[mid] == nums[high]的时候high-- ...
分类:
其他好文 时间:
2016-10-16 07:50:49
阅读次数:
159
问题:安装配置nagios客户端,在安装nrpe的时候遇到了报错,如下[root@TOMCAT3nrpe-2.9]#./configurecheckingforSSL...configure:error:Cannotfindssllibraries解决:安装open-ssl后,搞定[root@TOMCAT3nrpe-2.9]#yum-yinstallopenssl-devel
分类:
其他好文 时间:
2016-10-15 22:57:34
阅读次数:
335
1、获取后代元素 1)children() 不传参数:得到结果集内所有元素的子元素 传入选择器:得到结果集内元素的匹配传入选择器的子元素 2)find() 传入选择器:得到匹配选择器的后代元素 传入jQuery、HTMLElement、HTMLElement[] 得到结果集内所有元素的后代元素与参数 ...
分类:
Web程序 时间:
2016-10-15 14:25:19
阅读次数:
182
使用Union-Find方法。 应该还是比较标准的uf,但是开始自己看不出来。把二维压成一维,给一个编号,其他的基本上没有变化。 上面已经说得很清楚了,代码如下: ...
分类:
其他好文 时间:
2016-10-14 09:38:54
阅读次数:
150
1、题目描述 在一个二维数组中,每一行都按照从左到右递增的顺序排序,每一列都按照从上到下递增的顺序排序。请完成一个函数,输入这样的一个二维数组和一个整数,判断数组中是否含有该整数。 2、代码实现 1 public class Solution { 2 3 public boolean Find(in ...
分类:
编程语言 时间:
2016-10-14 09:36:04
阅读次数:
236
Given a string, find the length of the longest substring without repeating characters. Have you met this question in a real interview? Yes Given a str ...
分类:
其他好文 时间:
2016-10-14 07:04:04
阅读次数:
170
一、tokumx2.4用户管理操作db.isMaster()useadmindb.addUser("root","rootpwd")默认为管理员用户db.auth("root","rootpwd")验证用户db.system.users.find()查看用户db.system.users.update({"user":"zayhuroot"},{"$set":{"roles":["userAdminAnyDatabase","dbAdminAnyDatabase..
分类:
其他好文 时间:
2016-10-14 00:48:01
阅读次数:
453
问题描述: Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique ...
分类:
其他好文 时间:
2016-10-14 00:31:17
阅读次数:
185
Given a string, find the first non-repeating character in it and return it's index. If it doesn't exist, return -1. Examples: 除了两次for循环,暂时没有想到N时间复杂度的解 ...
分类:
其他好文 时间:
2016-10-14 00:25:58
阅读次数:
111
1.题目大意 Given an array of integers, every element appears twice except for one. Find that single one. Note:Your algorithm should have a linear runtime ...
分类:
编程语言 时间:
2016-10-14 00:24:38
阅读次数:
289