泛型的用法是在容器后面添加<Type>Type可以是类,抽象类,接口泛型表示这种容器,只能存放<Type> 1.设计支持泛型的二叉树,具有add(),Inorder()中序遍历方法 1 package generic; 2 3 import java.util.ArrayList; 4 import ...
分类:
编程语言 时间:
2020-01-23 16:55:32
阅读次数:
99
题目链接: 94. Binary Tree Inorder Traversal 题目大意: 二叉树的中序遍历 做题报告: (1)该题涉及的算法,数据结构以及相关知识点 递归 (2)自己的解答思路+代码+分析时间和空间复杂度 递归思路 /** * Definition for a binary tre ...
分类:
其他好文 时间:
2020-01-23 09:38:11
阅读次数:
72
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head> <title>javascript的数据类型</title> <met ...
分类:
编程语言 时间:
2020-01-23 09:14:17
阅读次数:
78
引言 由Van Jacobson编写的Tr a c e r o u t e程序是一个能更深入探索T C P / I P协议的方便可用的工具。 尽管不能保证从源端发往目的端的两份连续的 I P数据报具有相同的路由,但是大多数情况下 是这样的。Tr a c e r o u t e程序可以让我们看到I P ...
分类:
其他好文 时间:
2020-01-22 22:10:12
阅读次数:
74
An inorder binary tree traversal can be implemented in a non-recursive way with a stack. For example, suppose that when a 6-node binary tree (with the ...
分类:
其他好文 时间:
2020-01-21 13:21:50
阅读次数:
88
1020 Tree Traversals (25分) Suppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder traversal sequen ...
分类:
其他好文 时间:
2020-01-20 20:53:02
阅读次数:
76
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head> <title>Title</title> <meta lang="ut ...
分类:
其他好文 时间:
2020-01-20 00:25:41
阅读次数:
74
初识字典 字典 python中的数据类型之一 唯一 一种{} ,键值对的数据 dict 字典 字典 1、存储大量数据 比列表存储的数据要大 2、将数据和数据之间进行关联 定义 dic = {"键":"值"} dic = {"岳新力":["开车","唱","跳"],"孙一帆":9,25:"海绵",Tr ...
分类:
编程语言 时间:
2020-01-19 21:58:37
阅读次数:
61
先存个ABC板子题orz 1 #include<bits/stdc++.h> 2 using namespace std; 3 #define fi first 4 #define se second 5 #define tl rt<<1 6 #define tr rt<<1|1 7 #define ...
分类:
其他好文 时间:
2020-01-18 10:37:35
阅读次数:
73
1、带标题、表头的表格:"<td></td>" <table> <caption> /*表格的标题,居中显示*/ </caption> <tr> <th> /*表头,内容居中,加粗显示 */ </th></tr> <tr><td></td></tr> </table> 2、带结构的表格:当表格很长的 ...
分类:
Web程序 时间:
2020-01-18 10:25:31
阅读次数:
86