404 按理说也可以递归做。 public static int sumOfLeftLeaves(TreeNode root) { int total = 0; LinkedList<TreeNode> stack = new LinkedList<>(); stack.push(root); wh ...
分类:
其他好文 时间:
2021-02-23 14:11:21
阅读次数:
0
0 引言 本文将常用的指令记录下来,以备查询。 1 git Command Meaning Reference Linking git status view all files' state, tracked or untracked, commited or un commited git st ...
分类:
系统相关 时间:
2021-02-19 13:10:17
阅读次数:
0
异常:This application has no explicit mapping for /error, so you are seeing this as a fallback. 挖坑埋你 2018-03-12 12:49:46 65012 收藏 2 分类专栏: Questions 从菜鸟到 ...
分类:
移动开发 时间:
2021-02-18 13:55:14
阅读次数:
0
题意 把字符串前面的若干个字符转移到字符串的尾部,要求只用一个函数实现 思路 利用线性代数中的矩阵求逆的思想:\((AB)^{-1} = B^{-1}A^{-1}\) 定义一个函数reverse(s, l, r),将字符串s的[l, r]区间内的元素逆置,比如abc变为cba,这个reverse() ...
分类:
其他好文 时间:
2021-02-16 12:14:14
阅读次数:
0
以 Windows Subsystem for Linux 闯入 Visual Simultaneous Localization and Mapping 世界的艰难道路... 这里包含各种各样的 WSL 中可能用到的包,美化方案,以及相关软件的一些使用小技巧,用于自己踩坑记录的同时,希望能够帮到同... ...
分类:
移动开发 时间:
2021-02-15 12:39:26
阅读次数:
0
有时候需要把PHP的数组倒序一下,PHP很方便,一个函数搞定。
array_reverse()函数
$a=array(1,2,4,5,6);
print_r(array_reverse($a));
结果:Array ( [0] => 6
[1] => 5
[2] => 4
[3] => 2
... ...
分类:
编程语言 时间:
2021-02-15 12:23:46
阅读次数:
0
EDM entity data model 实体数据模型 Conceptual models 概念模型 Mappings 连接 Storage models 存储模型 Orm object relational mapping 对象关系映射 EF entity framework 是基于ADO.Ne ...
分类:
数据库 时间:
2021-02-06 12:17:48
阅读次数:
0
UOJ87 mx的仙人掌 这里没有用传统的方点外接圆点的做法,而是方点虚树上儿子跳到方点所在环上单调队列处理,本质上是一样的. code //爽! #include<bits/stdc++.h> using namespace std; typedef long long ll; const int ...
分类:
其他好文 时间:
2021-02-06 12:15:50
阅读次数:
0
LinkedHashMap<String,User> result = //方法一 map.entrySet().stream() //根据User中某个字段进行排序 .sorted(Map.Entry.comparingByValue( //若为Map<String,String>,则不需要下面这 ...
分类:
编程语言 时间:
2021-02-06 11:44:18
阅读次数:
0
具体报错信息: 1 Whitelabel Error Page 2 This application has no explicit mapping for /error, so you are seeing this as a fallback. 3 4 Mon Feb 01 21:33:07 C ...
分类:
移动开发 时间:
2021-02-02 11:27:59
阅读次数:
0