码迷,mamicode.com
首页 >  
搜索关键字:hash tree    ( 28321个结果
LeetCode | 0563. 二叉树的坡度【Python】
Problem LeetCode Given the root of a binary tree, return the sum of every tree node's tilt. The tilt of a tree node is the absolute difference between ...
分类:编程语言   时间:2021-01-25 11:29:21    阅读次数:0
Leetcode1319. 连通网络的操作次数
1319. 连通网络的操作次数 Difficulty: 中等 用以太网线缆将 n 台计算机连接成一个网络,计算机的编号从 0 到 n-1。线缆用 connections 表示,其中 connections[i] = [a, b] 连接了计算机 a 和 b。 网络中的任何一台计算机都可以通过网络直接或 ...
分类:其他好文   时间:2021-01-25 11:26:28    阅读次数:0
Redis初识
第1章 Redis初识 Redis 是什么 开源 基于键值的存储服务系统 多种数据结构 strings hash linked list sets sorted sets 高性能、功能丰富 Redis 的特性 速度快 持久化 多种数据结构 支持多种编程语言 功能丰富 简单 主从复制 高可用、分布式 ...
分类:其他好文   时间:2021-01-25 11:08:42    阅读次数:0
LeetCode | 0530. 二叉搜索树的最小绝对差【Python】
Problem LeetCode Given a binary search tree with non-negative values, find the minimum absolute difference between values of any two nodes. Example: I ...
分类:编程语言   时间:2021-01-21 10:55:51    阅读次数:0
list转化成tree
/** * 栏目列表转成树结构 * * @param list * @return */private static List<SysDict> listToTree(List<SysDict> list,Long id) { if (list == null || list.isEmpty()) ...
分类:其他好文   时间:2021-01-21 10:46:05    阅读次数:0
集合Collection
java集合 集合和数组是对多个数据进行存储操作的结构,简称java容器 数组初始化以后,其长度就确定了;数组一旦定义好,其元素的类型也就确定。 Collection接口 List接口 Vector ArrayList LinkedList Set接口 HashSet LinkedHashSet T ...
分类:其他好文   时间:2021-01-21 10:39:12    阅读次数:0
HashMap
HashMap的原理HashMap 在底层将 key-value 当成一个整体进行处理,这个整体就是一个 Entry 对象。HashMap 底层采用一个 Entry[] 数组来保存所有的 key-value 对,当需要存储一个 Entry 对象时,会根据 Hash 算法来决定其存储位置;当需要取出一 ...
分类:其他好文   时间:2021-01-20 11:42:28    阅读次数:0
【Fast17】The Logic of Physical Garbage Collection in Deduplicating Storage
Core Idea: 对于 GC 主要有两种方式,reference count 和 mark and sweep。这片文章主要讨论了如何高效的进行 mark and sweep 过程。 Mark and sweep 思想是先遍历所有的 chunk,然后对于 GC 之后不再需要的 chunk 进行标 ...
分类:其他好文   时间:2021-01-19 11:48:11    阅读次数:0
Easy | LeetCode 617. 合并二叉树
617. 合并二叉树 给定两个二叉树,想象当你将它们中的一个覆盖到另一个上时,两个二叉树的一些节点便会重叠。 你需要将他们合并为一个新的二叉树。合并的规则是如果两个节点重叠,那么将他们的值相加作为节点合并后的新值,否则不为 NULL 的节点将直接作为新二叉树的节点。 示例 1: 输入: Tree 1 ...
分类:其他好文   时间:2021-01-18 11:42:52    阅读次数:0
李超线段树
参考: https://oi-wiki.org/ds/li-chao-tree/ 例题: P4097 [HEOI2013]Segment #include<bits/stdc++.h> #define db double const int p=39989; using namespace std; ...
分类:其他好文   时间:2021-01-18 11:39:35    阅读次数:0
28321条   上一页 1 ... 30 31 32 33 34 ... 2833 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!