package com.dai.tree.threadedbinarytree; public class ThreadedBinaryTreeDemo { public static void main(String[] args) { //测试中序线索二叉树功能是否正确 HeroNode roo ...
分类:
其他好文 时间:
2021-02-27 13:26:03
阅读次数:
0
curl \ -H 'Accept-Encoding:gzip' \ -X POST \ --data-binary @/var/req_raw_eeeeeeeeeeeeeeee.eeeeeeee \ "https://aaa.bb.com/api/ccc/dddd?app=aaaaaaa&uuid ...
分类:
Web程序 时间:
2021-02-27 13:06:40
阅读次数:
0
问题: 给定二叉树,进行层序遍历,从底层向上输出。 Example 1: Input: root = [3,9,20,null,null,15,7] Output: [[15,7],[9,20],[3]] Example 2: Input: root = [1] Output: [[1]] Exam ...
分类:
其他好文 时间:
2021-02-26 12:54:45
阅读次数:
0
background 在以5.3为内核的ubuntu中编译3.10的内核时,出现: include/linux/compiler-gcc.h:106:30: fatal error: linux/compiler-gcc5.h错误 尝试了网上说的将当前内核(5.3)的compiler-gcc.h复制 ...
分类:
其他好文 时间:
2021-02-24 13:28:44
阅读次数:
0
MinGW(Minamalist GNU For Windows)是个精简的C/C++编译器,它实际上是将经典的开源C语言编译器GCC移植到了Windows下,并且包含了Win32API,因此可以将源代码编译生成Windows下的可执行程序。 一句话来概括,MinGW是GCC的Windows版本 M ...
分类:
数据库 时间:
2021-02-22 12:50:51
阅读次数:
0
题链 #include <bits/stdc++.h> #include <iostream> #include <algorithm> #include <stdio.h> #include <string.h> #include <stdlib.h> #pragma GCC optimize(2 ...
分类:
其他好文 时间:
2021-02-22 12:36:23
阅读次数:
0
hive的数据类型分为基本数据类型,数字类型,字符串类型 基本数据类型包括 TINYINT, SMALLINT, INT/INTEGER, BIGINT, FLOAT, DOUBLE, DECIMAL, BOOLEAN, BINARY hive的数字类型 分为整数类型,浮点数类型 hive的字符串类 ...
分类:
其他好文 时间:
2021-02-22 11:50:45
阅读次数:
0
题目大意 给你两个长度为 \(3^k\) 的数组。 定义两个数的 \(\text{mex}_3(a,b)\) 为两个数的在三进制下每一位的 \(\text{mex}\) 所组成的数。 求一个新的数组: \[ c_k=\sum_{\text{mex}_3(i,j)=k}a_i\cdot b_j \] ...
分类:
其他好文 时间:
2021-02-20 12:22:45
阅读次数:
0
Given an integer n, return the number of structurally unique BST's (binary search trees) which has exactly n nodes of unique values from 1 to n. Examp ...
分类:
其他好文 时间:
2021-02-20 12:13:36
阅读次数:
0
思路分析 和分行从上到下打印二叉树本质上是一样的,只不过奇数行是从左到右打印,偶数行是从右到左打印. cpp /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * Tre ...
分类:
其他好文 时间:
2021-02-19 13:33:14
阅读次数:
0