树 104.二叉树的最大深度 /** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x) { va ...
分类:
其他好文 时间:
2020-04-21 00:21:22
阅读次数:
87
地址:https://www.baidu.com/link?url=fJ5P3mDdJxPJPBMMaMXI6rddzPrI892EBzpxZQlF6sTvD1CnfcXu-4xpjLYvfolK&wd=&eqid=87db10e900010a0b000000045e9da0fc 题目描述 On B ...
分类:
其他好文 时间:
2020-04-20 23:21:38
阅读次数:
103
hyperbase官方简介: Transwarp Hyperbase实时数据库是建立在Apache HBase和Elasticsearch基础之上,融合了多种索引技术、分布式事务处理、全文实时搜索、图形数据库在内的实时NoSQL数据库。 个人总结: hyperbase是基于开源hbase+hive的 ...
分类:
其他好文 时间:
2020-04-20 16:12:19
阅读次数:
280
Problem : Given two integers L and R, find the count of numbers in the range [L, R] (inclusive) having a prime number of set bits in their binary repr ...
分类:
其他好文 时间:
2020-04-20 11:50:44
阅读次数:
65
二叉树的最小深度 LeetCode: "二叉树的最小深度" 题目描述: 给定一个二叉树,找出其最小深度。 最小深度是从根节点到最近叶子节点的最短路径上的节点数量。 说明: 叶子节点是指没有子节点的节点 示例: 思想: 还是递归,没啥特别的 代码 我的第一遍代码: 优化之后: if(x == 0||y ...
分类:
编程语言 时间:
2020-04-19 11:17:51
阅读次数:
76
目录 1、Electron背景介绍 2、Windows开发环境配置 3、打造第一个Electron应用 4、安装Electron 5、开发一个简易的Electron 6、了解electron-vue 7、安装vue-cli 8、生成样板代码 9、安装yarn 10、运行程序 11、了解node-gy ...
分类:
其他好文 时间:
2020-04-19 00:32:18
阅读次数:
96
Problem : Given a positive integer, check whether it has alternating bits: namely, if two adjacent bits will always have different values. Example 1: ...
分类:
其他好文 时间:
2020-04-18 22:43:40
阅读次数:
74
4.2 Fold Expressions 4.2 折叠表达式 Since C++17, there is a feature to compute the result of using a binary operator over all the arguments of a parameter ...
分类:
其他好文 时间:
2020-04-18 19:00:14
阅读次数:
82
题目描述: 给你一个二叉树,请你返回其按 层序遍历 得到的节点值。 (即逐层地,从左到右访问所有节点)。 返回其层次遍历结果: 示例:二叉树:[3,9,20,null,null,15,7], 思想: 访问过程中,只需要将同一层中的节点同时入队列即可。在将该queue中所有元素出队列的同时,将下一层的 ...
分类:
其他好文 时间:
2020-04-18 15:44:30
阅读次数:
63
前言 根据插入序列建立二叉平衡树并输出根结点,其实就是考察能否掌握建立二叉平衡树的过程。这题去年有写过,但是一直卡住了,这次终于写出来了,而且真的见识到了一些很 精妙 的操作,不管是调整还是插入过程。 题目描述 An AVL tree is a self balancing binary searc ...
分类:
其他好文 时间:
2020-04-18 13:41:24
阅读次数:
78