Given two binary trees original and cloned and given a reference to a node target in the original tree. The cloned tree is a copy of the original tree ...
分类:
其他好文 时间:
2020-04-15 09:14:36
阅读次数:
74
0 查看CPU信息命令 cat /proc/cpuinfo 1、查看物理CPU的个数 cat /proc/cpuinfo |grep "physical id"|sort|uniq|wc -l 2、查看逻辑CPU的个数 cat /proc/cpuinfo|grep "processor"|wc -l ...
分类:
系统相关 时间:
2020-04-13 12:12:34
阅读次数:
81
tp5.0时使用migrate工具,composer安装 composer require topthink/think-migration=1.* 注意,tp5.0对应1版本的migration工具,tp5.1及以上对应2版本的migration工具 查看指令 php think 创建migrat ...
分类:
数据库 时间:
2020-04-08 19:21:02
阅读次数:
233
一个经典的通过增长减小大小来求使得序列单调性的最小代价。 对于这道题,有一个前置题是不要求要严格单调,而是不严格单调 这样的话,我们可以得到一个性质,最后所有的值都是在原序列当中的,这其实用贪心的想法想一想就好,因为一旦通过加减与左边或右边相等,就没必要再加减了 但是本题要求严格,这就很难说了,因此 ...
分类:
其他好文 时间:
2020-04-05 18:13:38
阅读次数:
132
题目如下: There are n soldiers standing in a line. Each soldier is assigned a unique rating value. You have to form a team of 3 soldiers amongst them unde ...
分类:
其他好文 时间:
2020-04-04 14:39:27
阅读次数:
69
multimap 迭代器 观察器 容量 修改器 查找 操作符 总结 multimap 的特性及其用法和map完全相同,唯一的区别就是 multimap 允许键值key重复。 因此 multimap 的插入操作采用的是底层 RB Tree 的 insert_equal() 而非 insert_uniq ...
分类:
其他好文 时间:
2020-03-31 22:33:13
阅读次数:
60
Bessie is out in the field and wants to get back to the barn to get as much sleep as possible before Farmer John wakes her for the morning milking. Be ...
分类:
其他好文 时间:
2020-03-30 00:21:16
阅读次数:
101
Django默认生成的表名: 应用名小写_模型类名小写 可以通过在模型类中定义Meta类来修改表名: class Department(models.Model): """部门类""" name = models.CharField(max_length=20) create_date = mode ...
分类:
Web程序 时间:
2020-03-27 21:50:34
阅读次数:
104
1.1 Django Admin基本使用 1、Django Admin 基本使用演示 from django.db import models class User(models.Model): username = models.CharField(max_length=32,verbose_na ...
分类:
其他好文 时间:
2020-03-26 09:17:58
阅读次数:
58