- 博客(2)
- 收藏
- 关注
转载 string类
JDK常用的包在说String类之前,介绍几个JAVA当中几个比较常用的包。java.lang: 这个是系统的基础类,比如String、Math、Integer、System和Thread提供常用功能。java.io: 这里面是所有输入输出有关的类,比如文件操作等。java.net:这里面是与网络有关的类,比如URL,URLConnection等。java.util: 这个是系统辅助类,特别是集合类Collection,List,Map等。java.sql: 这个是数据库操作的类,Connect
2021-04-20 21:25:30
74
1
转载 前中后序遍历的非递归版本
前序遍历核心块 while(root != null || !stack.isEmpty()){ //go left down to the ground while(root != null){ res.add(root.val); stack.push(root); root = root.left; } //if we reach to the leaf, go back to the parent right, and re.
2021-04-06 20:11:24
60
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人