码迷,mamicode.com
首页 >  
搜索关键字:pig null    ( 34540个结果)
leetcode-----112. 路径总和
链接:https://leetcode-cn.com/problems/path-sum/ 代码 /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode ...
分类:其他好文   时间:2020-07-26 19:00:19    阅读次数:52
nohup、&、以及>/dev/null 2>&1
日志没有打在指定文件上,以及springboot自动shutdown问题: https://blog.csdn.net/sinat_39572070/article/details/79931355 https://www.cnblogs.com/cyttina/p/7588802.html 正例: ...
分类:其他好文   时间:2020-07-26 16:00:44    阅读次数:87
树-广度优先层次遍历
102. 二叉树的层序遍历 给你一个二叉树,请你返回其按 层序遍历 得到的节点值。 (即逐层地,从左到右访问所有节点)。 示例: 二叉树:[3,9,20,null,null,15,7], 3 / \ 9 20 / \ 15 7 返回其层次遍历结果: [ [3], [9,20], [15,7] ] # ...
分类:其他好文   时间:2020-07-26 15:44:06    阅读次数:63
枚举的妙用
单例 A single-element enum type is often the best way to implement a singleton. 单元素的枚举类型已经成为实现Singleton的最佳方法。 一般有两种方式,对于比较简单的效果实现,可以直接在枚举里写方法。 public en ...
分类:其他好文   时间:2020-07-26 15:34:09    阅读次数:55
力扣-94-二叉树的中序遍历
题目:传送门 方法一、递归 中序遍历:先遍历左子树,在遍历根节点,最后遍历右子树。比较经典的方法是递归。 /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeN ...
分类:其他好文   时间:2020-07-26 15:32:51    阅读次数:67
配置文件初始化异常Configuration system failed to initialize
最近用户反映一些电脑启动程序就崩溃,还给演示了一个比较诡异的问题 “把软件重新拷贝到另外一个目录,就能正常运行"。还说过一段时间又不能运行需要在换个位置。 ’由于当时没有设置全局异常,只能借助系统操作日志来分析, 系统日志记录不全,就说发生一个异常程序挂掉。 就简单加上全局异常捕获。 public ...
分类:其他好文   时间:2020-07-26 15:11:49    阅读次数:94
HDU 1325 Is It A Tree?
A tree is a well-known data structure that is either empty (null, void, nothing) or is a set of one or more nodes connected by directed edges between ...
分类:其他好文   时间:2020-07-26 02:05:42    阅读次数:102
深度克隆
function deepClone(orign,target){ // 1判断是不是原始值 // 2,判断是数组还是对象选用toString的原因是因为instanceof和constructor有一个父子域的问题 // 3,建立相应的数组或对象 var target=target||{}, to ...
分类:其他好文   时间:2020-07-26 01:22:31    阅读次数:54
ES 2020 新功能
ES 2020 新功能 虽然现在浏览器的支持情况还不友好,但是先记下来总是不亏的。 1、可选的链接操作。 假设后端返回的数据是一个层级比较深的 json 数据。如果想要使用里面的项而不报错,就需要每一层先判断再使用。 let res = { user: { name: 'tom' } } conso ...
分类:其他好文   时间:2020-07-26 01:12:31    阅读次数:75
2, nginx的location 详解
= :精确匹配(必须全部相等) ~ :大小写敏感 ~* :忽略大小写 ^~ :只需匹配uri部分,不匹配正则表达式。 @ :内部服务跳转 匹配顺序: = > ^~ > ~* > /document/ > / request / :A request /index.html :B request /d ...
分类:其他好文   时间:2020-07-26 01:00:55    阅读次数:62
共34540条   上一页 1 ... 90 91 92 93 94 ... 3454 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!