码迷,mamicode.com
首页 >  
搜索关键字:search inside folder    ( 14440个结果
【LeetCode】- Search Insert Position(查找插入的位置)
[ 问题: ] Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order. You may assume no duplicates in th...
分类:其他好文   时间:2014-07-22 23:01:15    阅读次数:270
Ubuntu 12.04 安装WPS
1. 安装包下载:wps官网的 debian .deb 包 2 根据wifi说明,需要一下三个lib: libtiff.so.4 libpng12.so.0 libjpeg.so.62 通过以下命令查看是否具备: liaoqianwen@liaoqianwen-F80S:~ aptitude search libtiff 如果没有,安装: liao...
分类:其他好文   时间:2014-07-22 22:59:35    阅读次数:343
一个优秀的c++程序员应该具备的素质
1.把C++当成一门新的语言学习(和C没啥关系!真的。); 2.看《Thinking In C++》,不要看《C++变成死相》; 3.看《The C++ Programming Language》和《Inside The C++ Object Model》,不要因为他们很难而我们自己是初学者所以就不...
分类:编程语言   时间:2014-05-05 23:56:01    阅读次数:480
for dummies,Inside Out,考试用书之我见
这3个系列的书我买了不少本,虽然没有都读完,但是还是要做个阶段性的评价for dummies:即阿呆系列,外教老师Chris说那是入门的书,知识量少,我觉得自己开辟一个新的学习计划时,这个系列的书是很有帮助的,细分两个子系列all-in-one for dummies:这个系列的书厚些,通常是几本书...
分类:其他好文   时间:2014-05-05 23:16:11    阅读次数:272
Validate Binary Search Tree
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 n...
分类:其他好文   时间:2014-05-02 15:03:57    阅读次数:386
leetcode: Search a 2D Matrix
Write an efficient algorithm that searches for a value in anmxnmatrix. This matrix has the following properties:Integers in each row are sorted from l...
分类:其他好文   时间:2014-05-02 10:41:53    阅读次数:267
leetcode: Search Insert Position
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in or...
分类:其他好文   时间:2014-05-02 09:54:11    阅读次数:269
Ternary Search Tree C++实现
Ternary Search Tree C++实现...
分类:编程语言   时间:2014-05-01 17:51:59    阅读次数:410
数据结构《17》---- Ternary Search Tree
一、 序言 上一篇文章中,给出了 trie 树的一个实现。可以看到,trie 树有一个巨大的弊病,内存占用过大。 本文给出另一种数据结构来解决上述问题---- Ternary Search Tree (三叉树) 二、数据结构定义 Trie 树中每个节点包含了 26 个指针,但有很大一部分的指针是 NULL 指针,因此浪费了大量的资源。 一种改进措施就是,以一棵树来代替上述的指针数组。...
分类:其他好文   时间:2014-05-01 17:49:30    阅读次数:326
Unique Binary Search Trees -- LeetCode
原题链接: http://oj.leetcode.com/problems/unique-binary-search-trees/  这道题要求可行的二叉查找树的数量,其实二叉查找树可以任意取根,只要满足中序遍历有序的要求就可以。从处理子问题的角度来看,选取一个结点为根,就把结点切成左右子树,以这个结点为根的可行二叉树数量就是左右子树可行二叉树数量的乘积,所以总的数量是将以所有结点为根的可行结果...
分类:其他好文   时间:2014-04-30 22:12:39    阅读次数:244
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!