码迷,mamicode.com
首页 >  
搜索关键字:binary trees    ( 12390个结果)
Binary Indexed Tree-307. Range Sum Query - Mutable
Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive. The update(i, val) function modifies nums by upd ...
分类:其他好文   时间:2018-01-13 11:17:22    阅读次数:95
Geometry-587. Erect the Fence
There are some trees, where each tree is represented by (x,y) coordinate in a two-dimensional garden. Your job is to fence the entire garden using the ...
分类:其他好文   时间:2018-01-13 11:15:26    阅读次数:218
257. Binary Tree Paths
#week18 Given a binary tree, return all root-to-leaf paths. For example, given the following binary tree: All root-to-leaf paths are: 分析: 这是一题比较简单的递归 ...
分类:其他好文   时间:2018-01-13 11:07:50    阅读次数:125
Recursion-687. Longest Univalue Path
Given a binary tree, find the length of the longest path where each node in the path has the same value. This path may or may not pass through the roo ...
分类:其他好文   时间:2018-01-13 11:06:21    阅读次数:153
Bit Manipulation-476. Number Complement
Given a positive integer, output its complement number. The complement strategy is to flip the bits of its binary representation. Note: Example 1: Exa ...
分类:其他好文   时间:2018-01-13 11:03:00    阅读次数:158
linux学习入门之Linux系统目录结构
通过命令ls/可以展示Linux系统目录结构,主要包括以下内容:1. binbin是Binary的缩写, 这个目录存放着最经常使用的命令。2. boot这里存放的是启动Linux时使用的一些核心文件,包括一些连接文件以及镜像文件。3. devdev是Device(设备)的缩写, 该目录下存放的是Linux的外部设备,在Linux中访问设备的方式和访问文件的方式是相同的。4. etc这个目录用来存放
分类:系统相关   时间:2018-01-12 15:30:17    阅读次数:194
创建分类器笔记
创建简单分类器 简介: 分类是指利用数据的特性将其分类成若干类型的过程。分类与回归不同,回归的输出是实数。监督学习分类器就是用带标记的训练数 据建立一个模型,然后对未知的数据进行分类。 分类器 可以实现分类功能的任意算法,最简单的分类器就是简单的数学函数。其中有二元(binary)分类器,将数据分成 ...
分类:其他好文   时间:2018-01-12 11:33:33    阅读次数:160
深入Java基础(一)——基本数据类型及其包装类
文章结构: 1. 基本数据类型的系统描述; 2.数据类型的包装类理解(含源码解析); 3.数据类型转换、装包拆包等一些小坑。 一、基本数据类型的系统描述: 1. 总述: Java基本数据类型分为两大类:boolean类型和数值类型。数值类型可分为整数类型和浮点类型,而其中字符类型可单独对待。所以Ja ...
分类:编程语言   时间:2018-01-11 22:23:47    阅读次数:209
Python 常用查找数据结构及算法
常用查找数据结构及算法 一、基本概念 二、无序表查找 三、有序表查找 3.1 二分查找(Binary Search) 3.2 插值查找 3.3 斐波那契查找 四、线性索引查找 4.1 稠密索引 4.2 分块索引 4.3 倒排索引 五、二叉排序树 六、 平衡二叉树 七、多路查找树(B树) 7.1 2- ...
分类:编程语言   时间:2018-01-11 16:16:32    阅读次数:233
538. Convert BST to Greater Tree
Given a Binary Search Tree (BST), convert it to a Greater Tree such that every key of the original BST is changed to the original key plus sum of all ...
分类:其他好文   时间:2018-01-11 16:10:33    阅读次数:101
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!