码迷,mamicode.com
首页 >  
搜索关键字:search    ( 12380个结果
LeetCode: Search a 2D Matrix [074]
【题目】 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 row is greater than the last integer of the previous ...
分类:其他好文   时间:2014-06-05 08:28:43    阅读次数:321
Coreseek:第二步建索引及测试
1,建索引很简单,一行代码 g:/service/coreseek/bin/indexer -c g:/service/coreseek/etc/csft_mysql.conf   person 前面是你bin目录下的indexer程序 后面-c指后面会跟配置文件 然后是配置文件地址 最好都用绝对地址 在后面是索引 也可以用--all 即对配置文件的所有部分都做索引 然后写成一个批处理文...
分类:其他好文   时间:2014-06-04 23:22:13    阅读次数:256
LeetCode: Search in Rotated Sorted Array II [081]
【题目】 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-03 01:55:38    阅读次数:173
LeetCode: Word Search [079]
【题目】 Given a 2D board and a word, find if the word exists in the grid. The word can be constructed from letters of sequentially adjacent cell, where "adjacent" cells are those horizontally or vertically neighboring. The same letter cell may not be use...
分类:其他好文   时间:2014-06-03 01:07:58    阅读次数:329
OAF_查询4种不同的实现方式的比较和实现(案列)
2014-06-02 BaoXinjian一、摘要OAF实现查询功能或需求,一般都会采用以下四种方式(1). ResultBasedSearch最简单的实现方式,将结果中某些栏位需要查询的栏位的属性search设定为true即可(2). AutoCustomizationCriteria:Simpl...
分类:其他好文   时间:2014-06-02 13:19:53    阅读次数:478
LeetCode: Recover Binary Search Tree [099]
【题目】 Two elements of a binary search tree (BST) are swapped by mistake. Recover the tree without changing its structure. Note: A solution using O(n) space is pretty straight forward. Could you devise a constant space solution? confused what "{1,#,2,3}" ...
分类:其他好文   时间:2014-06-02 10:38:17    阅读次数:246
LeetCode: Validate Binary Search Tree [098]
【题目】 Given a binary tree, determine if it is a valid binary search tree (BST). Assume a BST is defined as follows: The left subtree of a node contains only nodes with keys less than the node's key. The right subtree of a node contains only nodes with ke...
分类:其他好文   时间:2014-06-02 10:29:55    阅读次数:257
Leetcode Search Insert Position
Search Insert PositionTotal Accepted:15484Total Submissions:44816Given a sorted array and a target value, return the index if the target is found. If ...
分类:其他好文   时间:2014-06-02 02:06:39    阅读次数:214
LeetCode: Unique Binary Search Trees [095]
【题目】 Given n, how many structurally unique BST's (binary search trees) that store values 1...n? For example, Given n = 3, there are a total of 5 unique BST's. 1 3 3 2 1 \ / / / \ 3 2 1 ...
分类:其他好文   时间:2014-06-01 15:34:24    阅读次数:231
LeetCode: Unique Binary Search Trees II [096]
【题目】 Given n, generate all structurally unique BST's (binary search trees) that store values 1...n. For example, Given n = 3, your program should return all 5 unique BST's shown below. 1 3 3 2 1 \ / / / \ ...
分类:其他好文   时间:2014-06-01 15:33:45    阅读次数:297
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!