码迷,mamicode.com
首页 >  
搜索关键字:find    ( 24186个结果
Jquery操作select标签的常用方法
1.清空select标签下的option标签 (1) $("#search").html(""); (2) $("#search").find(“option”).remove(); (3) $("#search").empty() 2.对value和text的操作 (1) $("#search") ...
分类:Web程序   时间:2016-08-23 20:22:19    阅读次数:159
leetcode 日记 162. Find Peak Element java python
根据题目可知,输入为:一个相邻元素不相等的数列,输出为:其中一个(上)峰值的序号。并且要求时间复杂度为logn 分析:由于题目要求时间复杂度为logn,因此不能进行全部遍历。又因为只需要找到其中的一个峰值,那么,每次对半分,便可以达到logn的复杂度。 根据对半分的思路继续想,不难发现只要确定了中间 ...
分类:编程语言   时间:2016-08-23 19:02:34    阅读次数:369
非关系型数据库性能调优
Mongodb 1、Mongodb优化: a、语句优化可能通过Profile找到执行时间长的语句。db.getProfiling.Level()来获取profile级别 db.system.profile.find()查看profile记录。 b、找到语句后,通过explain来解析这条语句,可以看 ...
分类:数据库   时间:2016-08-23 14:45:06    阅读次数:192
【LeetCode】169. Majority Element 解题小结
题目:Given an array of size n, find the majority element. The majority element is the element that appears more than ? n/2 ? times. You may assume that ...
分类:其他好文   时间:2016-08-23 14:30:41    阅读次数:111
160. Intersection of Two Linked Lists
Write a program to find the node at which the intersection of two singly linked lists begins. For example, the following two linked lists: begin to in ...
分类:其他好文   时间:2016-08-23 13:07:07    阅读次数:99
【LeetCode】Contains Duplicate II 解题小结
题目: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 t ...
分类:其他好文   时间:2016-08-23 06:53:24    阅读次数:179
Ubuntu 之 Personal Package Archive (PPA)
How do I use software from a PPA? To start installing and using software from a Personal Package Archive, you first need to tell Ubuntu where to find ...
分类:系统相关   时间:2016-08-23 06:53:21    阅读次数:276
Linux命令之乐--find
find是命令行工具箱中最棒的命令之一。 列出当前目录及其子目录中的文件和文件夹。 -print,用\n对文件名进行分隔,另外它也可以省略,因为它已经是默认的了,需要注意的是文件名中含有换行符时,应该使用-print0,它使用\0作为文件名间的分隔。 根据文件名或正则表达式进行搜索。 -name - ...
分类:系统相关   时间:2016-08-23 06:46:58    阅读次数:212
Two Sum
Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two n ...
分类:其他好文   时间:2016-08-22 23:05:57    阅读次数:139
Longest Substring Without Repeating Characters
Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which the leng ...
分类:其他好文   时间:2016-08-22 22:57:42    阅读次数:98
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!