码迷,mamicode.com
首页 >  
搜索关键字:search    ( 12380个结果
[LeetCode] Search in Rotated Sorted Array
循环有序 一共有以下两种情况 第一种 / / // / / 条件:(A[mid] >= A[low]) ,low~mid 二分,mid~high 递归第二种 / / / / / / 条件:(A[mid] A[mid])12 ...
分类:其他好文   时间:2014-06-19 06:46:36    阅读次数:303
[LeetCode] Search in Rotated Sorted Array II
Follow up for "Search in Rotated Sorted Array":What ifduplicatesare allowed?Would this affect the run-time complexity? How and why?Write a function to...
分类:其他好文   时间:2014-06-18 20:54:36    阅读次数:202
UISearchBar
非常菜的iOS菜鸟一枚~~~~~最近做项目里需要一个搜索框,UI设计的是使用自定义的外观,所以需要修改很多内置的东西,写代码和调试的过程搜了很多资料,也在stack上问了很多问题,发现关于UISearchBar的资料少得可怜,尤其是iOS7里search bar的资料更是几近没有,所以我整理了一下我...
分类:其他好文   时间:2014-06-18 20:46:54    阅读次数:222
二叉查找树(binary search tree)详解
二叉查找树(Binary Search Tree),也称二叉排序树(binary sorted tree),是指一棵空树或者具有下列性质的二叉树:若任意节点的左子树不空,则左子树上所有结点的值均小于它的根结点的值任意节点的右子树不空,则右子树上所有结点的值均大于它的根结点的值任意节点的左、右子树也分...
分类:其他好文   时间:2014-06-16 23:32:04    阅读次数:199
文本处理工具之一grep命令详解
grep(Globel Search Regular Expression and Printing out the line)全面搜索正则表达式并把行打印出来)是一种强大的文本搜索工具,是一个对行进行操作的搜索工作,它能使用正则表达式搜索文本,并把匹配的行打印出来。Unix的grep家族包括grep、egrep和fgrep。 egrep表示扩展的grep,相比grep支持更多的元字符,"grep...
分类:其他好文   时间:2014-06-16 20:07:52    阅读次数:220
重置vCenter Server Appliance 5.5 密码
今天登陆公司实验室的vCSA,突然发现密码失效了。原来以为是有人修改了密码。但是经过强大的谷歌搜索,发现原来vCSA的密码有效期默认是90天失效的。然后就读到了VMware的一篇关于重置vCSA密码的文章。受益匪浅。原文地址:http://kb.vmware.com/selfservice/microsites/search.d..
分类:移动开发   时间:2014-06-16 18:22:53    阅读次数:407
【Leetcode】Search a 2D Matrix
Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: Integers in each row are sorted from left to right.The first integer of each...
分类:其他好文   时间:2014-06-15 14:12:44    阅读次数:238
leetcode - Unique Binary Search Trees
题目:Unique Binary Search TreesGivenn, how many structurally uniqueBST's(binary search trees) that store values 1...n?For example,Givenn= 3, there are a...
分类:其他好文   时间:2014-06-15 13:16:53    阅读次数:202
[LeetCode] Word Search [37]
给一个二维字符数组,给一个字符串,问该二维数组是否包含该字符串。比如一个二维数组[ ABCE SFCS ADEE ]和字符串"ABCCED",这个就包含。解决这个问题,主要的关键是怎么解决在二维数组中查找方向,如何来标识哪些是走过的。 代码如下...
分类:其他好文   时间:2014-06-15 10:02:15    阅读次数:221
[LeetCode] Search in Rotated Sorted Array II [36]
题目 Follow up for "Search in Rotated Sorted Array": What if duplicates are allowed? Would this affect the run-time complexity? How and why? Write a function to determine if a given target is in the array. 原题链接(点我) 解题思路 这题和Search in Rotated Sorted Array问题类似,...
分类:其他好文   时间:2014-06-14 12:44:18    阅读次数:266
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!