问题: 给定二叉树,进行层序遍历,从底层向上输出。 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
/*每次产生5个随机减法算术题,提示用户输入答案,并判断是否正确,最后显示正确答案以及答题时间涉及知识点:1.随机数的生成方法Math.random()2.条件分支语句if3.获取时间System.currentTimeMillis(),4.三元运算符代替if5.String 的巧妙使用 */pac ...
分类:
编程语言 时间:
2021-02-25 11:58:49
阅读次数:
0
文件夹数据库处理逻辑 public class DbFolder { JSONObject root; public DbFolder() { this.root = new JSONObject(); this.root.put("f_id", ""); this.root.put("f_name ...
分类:
Web程序 时间:
2021-02-25 11:55:52
阅读次数:
0
为什么不用:pd.read_excel ? 因为 pd 使用 openpyxl 读取excel文件,有时候xlsx文件是由ApachIO产生的读取进去会出错,换个方式,用xlwings(基于pywin32?)。 传说会更快吗,没有测试速度,可以自行测试。 代码: import xlwings as ...
\(\text{Problem}:\)题目链接 \(\text{Solution}:\) 记一个状态为有序三元组 \((x,y,z)\)。 当 \(x<y<z\) 时,考虑先手一步必胜的情况:当 \(z-y=y-x\) 且后手上一步选了 \(z\) 时,先手给定 \(z-y\) 这个数。 当 \(x ...
分类:
其他好文 时间:
2021-02-24 13:02:04
阅读次数:
0
using System; namespace leecode1 { class Program { static void Main(string[] args) { string outString= string.Empty; string s1 = "abc"; string s2 = "p ...
分类:
其他好文 时间:
2021-02-24 12:48:10
阅读次数:
0
playbook部署lamp 环境 主机IP |需要安装的服务 |name -|-|- 192.168.23.132 |ansible |ansible 192.168.23.133 |httpd |httpd 192.168.23.134 |mysql |mysql 192.168.23.135 ...
分类:
其他好文 时间:
2021-02-23 14:38:08
阅读次数:
0
主要是这两个sql start_log(利用get_json_object函数): insert overwrite table "$app".dwd_start_log PARTITION (dt='$do_date') select get_json_object(line,'$.mid') m ...
分类:
数据库 时间:
2021-02-23 14:36:54
阅读次数:
0
给定 N,求有多少 a,b,c 满足 $a \le b \le c \le n, a^2 + b^2 = c^2, a^2 - b = c$ ...
分类:
其他好文 时间:
2021-02-23 14:31:13
阅读次数:
0
For 语法:for (initialisation; condition; increment/decrement) action #for 语句首先执行初始化动作( initialisation ),然后再检查条件( condition )。如果条件为真,则执行动作( action ),然后执行 ...
分类:
其他好文 时间:
2021-02-23 14:17:54
阅读次数:
0