码迷,mamicode.com
首页 >  
搜索关键字:find    ( 24186个结果
154. Find Minimum in Rotated Sorted Array II
就比1多了一点点 第13行,当nums[mid] == nums[high]的时候high-- ...
分类:其他好文   时间:2016-10-16 07:50:49    阅读次数:159
checking for SSL... configure: error: Cannot find ssl libraries
问题:安装配置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
jquery-根据现有结果集得到另一个结果集(后代、祖先或兄弟元素)
1、获取后代元素 1)children() 不传参数:得到结果集内所有元素的子元素 传入选择器:得到结果集内元素的匹配传入选择器的子元素 2)find() 传入选择器:得到匹配选择器的后代元素 传入jQuery、HTMLElement、HTMLElement[] 得到结果集内所有元素的后代元素与参数 ...
分类:Web程序   时间:2016-10-15 14:25:19    阅读次数:182
305. Number of Islands II
使用Union-Find方法。 应该还是比较标准的uf,但是开始自己看不出来。把二维压成一维,给一个编号,其他的基本上没有变化。 上面已经说得很清楚了,代码如下: ...
分类:其他好文   时间:2016-10-14 09:38:54    阅读次数:150
《剑指Offer》之二维数组中的查找
1、题目描述 在一个二维数组中,每一行都按照从左到右递增的顺序排序,每一列都按照从上到下递增的顺序排序。请完成一个函数,输入这样的一个二维数组和一个整数,判断数组中是否含有该整数。 2、代码实现 1 public class Solution { 2 3 public boolean Find(in ...
分类:编程语言   时间:2016-10-14 09:36:04    阅读次数:236
[LintCode] Longest Substring Without Repeating Characters
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
2016.10.13 工作遇到的一些mongo问题
一、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
Longest Palindromic Substring问题
问题描述: 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
leetcode387
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
LeetCode - 136. Single Number - ( c++ ) - 解题报告
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!