题目描述: Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the fart ...
分类:
其他好文 时间:
2019-06-14 00:46:20
阅读次数:
101
[本博客已经迁移到http://blog.csdn.net/qq_28106715/article/details/71405507] [本博客已经迁移到http://blog.csdn.net/qq_28106715/article/details/71405507] [以下内容不再维护] [以下 ...
分类:
数据库 时间:
2019-06-13 22:20:54
阅读次数:
201
webmagic简介: WebMagic是一个简单灵活的Java爬虫框架。你可以快速开发出一个高效、易维护的爬虫。 http://webmagic.io/ 准备工作: Maven依赖(我这里用的Maven创建的web项目做测试): <dependencies> <!-- junit --> <dep ...
分类:
编程语言 时间:
2019-06-13 17:24:17
阅读次数:
142
root.graphqls 这个文件用来定义属性字段,必须和实体类相同 文件里面的字段写错会报这个错误 com.coxautodev.graphql.tools.FieldResolverError: No method or field found with any of the followin ...
这题可能是QZC论文中最板子的题了。。 我们只需要把边权记在比边深的点上,然后便就是树链剖分的板子了。。 由于题目卡语言。。以下代码需要转C才能过。。 cpp include using namespace std; const int N = 10005; int dep[N],siz[N],fa ...
分类:
其他好文 时间:
2019-06-09 09:16:06
阅读次数:
79
/** * Definition for binary tree * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x) { val = x; } * } */ import ... ...
分类:
其他好文 时间:
2019-06-08 15:11:15
阅读次数:
99
在以往的项目中,多表关联查询使用外键进行关联,在实体类中写的属性也是外键,在使用mybatis时,需要进行调整。需要用到的数据库如下: -- -- Table structure for dept -- DROP TABLE IF EXISTS `dept`; CREATE TABLE `dept` ...
分类:
其他好文 时间:
2019-06-07 23:07:58
阅读次数:
113
同步互斥 线程间通信方法 1.通信方法:线程间使用全局变量进行通信 2.共享资源争夺 共享资源:多个进程或者线程都可以操作的资源称为共享资源。对共享资源的操作代码段称为临界区。 影响 : 对共享资源的无序操作可能会带来数据的混乱,或者操作错误。此时往往需要同步互斥机制协调操作顺序。 3.同步互斥机制 ...
分类:
编程语言 时间:
2019-06-07 22:42:23
阅读次数:
154
1,将 项目 放到 tomcat 的webapps 文件夹下 2, 修改conf 下的 server.xml , 找到 <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true"> 在 Host 标签 下加 ...
分类:
其他好文 时间:
2019-06-07 12:39:56
阅读次数:
99