码迷,mamicode.com
首页 >  
搜索关键字:search    ( 12380个结果
Search in Rotated Sorted Array II leetcode java
题目: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 funct....
分类:编程语言   时间:2014-07-22 22:47:55    阅读次数:214
vim环境设置参数
~/.vimrc //vim环境脚本~/.viminfo //vim登录信息:set nu :set nonu //设置是否取消行号:set hlsearch:set nohlsearch // hight light search(高亮度搜寻) //是否反白:set backup //是否自动存....
分类:其他好文   时间:2014-07-22 22:47:33    阅读次数:388
【leetcode刷题笔记】Convert Sorted List to Binary Search Tree
Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.题解:开始想到的方法比较偷懒,直接遍历一遍数组,把每个ListNode对应的值放到...
分类:其他好文   时间:2014-07-22 22:45:13    阅读次数:271
【leetcode刷题笔记】Unique Binary Search Trees II
Givenn, generate all structurally uniqueBST's(binary search trees) that store values 1...n.For example,Givenn= 3, your program should return all 5 uni...
分类:其他好文   时间:2014-07-22 22:42:33    阅读次数:243
【leetcode】Search for a Range
Given a sorted array of integers, find the starting and ending position of a given target value.Your algorithm's runtime complexity must be in the ord...
分类:其他好文   时间:2014-07-22 00:13:35    阅读次数:154
LeetCode :: Convert Sorted Array (link list) to Binary Search Tree [tree]
1.Given an array where elements are sorted in ascending order, convert it to a height balanced BST. 2.Given a singly linked list where elements are sorted in ascending order, convert it to a heig...
分类:其他好文   时间:2014-07-21 23:45:53    阅读次数:264
【组队赛三】—E Binary Search cf448D
Multiplication Table Time Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u Submit Status Practice CodeForces 448D Description Bizon the Champion isn't just charming, he al...
分类:其他好文   时间:2014-07-21 23:29:23    阅读次数:311
图像分割—基于图的图像分割(Graph-Based Image Segmentation)
Graph-Based Segmentation 是经典的图像分割算法,作者Felzenszwalb也是提出DPM算法的大牛。该算法是基于图的贪心聚类算法,实现简单,速度比较快,精度也还行。不过,目前直接用它做分割的应该比较少,毕竟是99年的跨世纪元老,但是很多算法用它作垫脚石,比如Object Propose的开山之作《Segmentation as Selective Search for Object Recognition》就用它来产生过分割(oversegmentation)。还有的语义分割(se...
分类:其他好文   时间:2014-07-21 22:47:07    阅读次数:406
编程算法 - 二叉搜索树(binary search tree) 集合(set)和映射(map) 代码(C)
二叉搜索树(binary search tree) 集合(set)和映射(map) 代码(C++)本文地址: http://blog.csdn.net/caroline_wendy二叉搜索树(binary search tree)作为常用而高效的数据结构, 标准库中包含实现, 在标准库的集合(set)和映射(map), 均使用.具体操作代码如下.代码:/* * main.cpp * * C...
分类:其他好文   时间:2014-07-21 15:48:15    阅读次数:190
编程算法 - 二叉搜索树(binary search tree) 代码(C)
二叉搜索树(binary search tree) 代码(C)本文地址: http://blog.csdn.net/caroline_wendy二叉搜索树(binary search tree)可以高效的进行插入, 查询, 删除某个元素, 时间复杂度O(logn).简单的实现方法如下.代码:/* * main.cpp * * Created on: 2014.7.20 * Au...
分类:其他好文   时间:2014-07-21 15:15:16    阅读次数:273
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!