Leetcode 572 Subtree of Another Tree 题解分析
Given the roots of two binary trees root and subRoot, return true if there is a subtree of root with the same structure and node values of…
Given the roots of two binary trees root and subRoot, return true if there is a subtree of root with the same structure and node values of…
上一次主要是给了一个解题方案,没有具体讲解,这次又做到了就来看下几种方案,链表转置一直是我比较疑惑的问题,特别是边界处理,而这个问题要把难度加大了 我先讲一下我一开始的思路和解题方法,首先就是写一个转置方法,就处理 k 个一组的内部转置,然后外部循环处理分组以及前后连接等问题…
上周因为一些事情没有更新在这里,是因为新电脑还没到,手头没有把移动硬盘里的 time machine 恢复出来的机器,所以单独更了一篇在新建的一个 cloudflare page 服务上,总体体验还可以,就是有个小点后面可以讲一下,继续完善下 Java 的这个日志,或者说主要讲…
log 初始化过程,首先是在启动类里会获取 logger。继续下去是 org.apache.commons.logging.impl.SLF4JLogFactory#getInstance(java.lang.Class)
我们在使用 Java 的日志库的时候,比如我们现在项目在用的 logback,可以配置滚动策略,简单介绍下启动逻辑,这里我们定义的是 ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy 它是继承了 ch.qos.l…