For a binary tree T, we can define a flip operation as follows: choose any node, and swap the left and right child subtrees. A binary tree X is flip e ...
分类:
其他好文 时间:
2020-06-08 00:23:38
阅读次数:
49
You have a lock in front of you with 4 circular wheels. Each wheel has 10 slots: '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'. The wheels can rota ...
分类:
其他好文 时间:
2020-06-07 13:04:24
阅读次数:
50
地址 https://leetcode-cn.com/problems/longest-consecutive-sequence/ 给定一个未排序的整数数组,找出最长连续序列的长度。 要求算法的时间复杂度为 O(n)。 示例: 输入: [100, 4, 200, 1, 3, 2] 输出: 4 解释: ...
分类:
其他好文 时间:
2020-06-06 21:23:22
阅读次数:
54
题意We give the following inductive definition of a “regular brackets” sequence: the empty sequence is a regular brackets sequence,if s is a regular bra ...
分类:
其他好文 时间:
2020-06-06 11:21:38
阅读次数:
55
TCP握手协议 在TCP/IP协议中,TCP协议提供可靠的连接服务,采用三次握手建立一个连接.第一次握手:建立连接时,客户端发送syn包(syn=j)到服务器,并进入SYN_SEND状态,等待服务器确认; SYN:同步序列编号(Synchronize Sequence Numbers)第二次握手:服 ...
分类:
其他好文 时间:
2020-06-06 11:17:49
阅读次数:
50
import cn.hutool.extra.qrcode.QrCodeUtil; // 生成链接 String url = longUrl(inviteId, inviteDetailId, EMAIL_SEND_TYPE, CLICK_OPERATION); String path = newF ...
分类:
编程语言 时间:
2020-06-06 10:39:25
阅读次数:
140
这几天客户反映用网站每天都有几分钟连不上,报错信息如下: 刚开始判断是由于IIS或者网络原因设置导致的,调整了一下IIS的参数试了一下网络,网络正常。第二天还是一样的报错。最后将原因归结于oracle数据库的问题。随即查看alert.log。 在alert.log日志中出现大量的报错信息: atal ...
分类:
其他好文 时间:
2020-06-05 11:36:51
阅读次数:
80
(一)统计信息收集概述 在Oracle 11g中,默认有3个自动任务,分别是:自动统计信息收集、SQL调优顾问、段空间调整顾问,查看方法如下: SQL> SELECT CLIENT_NAME,TASK_NAME,OPERATION_NAME,STATUS FROM dba_autotask_task ...
分类:
数据库 时间:
2020-06-03 20:38:37
阅读次数:
78
python内置函数 abs() abs() 函数返回数字的绝对值。 abs( x ) x -- 数值表达式,可以是整数,浮点数,复数。 函数返回 x(数字)的绝对值,如果参数是一个复数,则返回它的大小。 all() all() 函数用于判断给定的可迭代参数 iterable 中的所有元素是否都为 ...
分类:
编程语言 时间:
2020-06-03 15:58:15
阅读次数:
77
7-1 Maximum Subsequence Sum(25 分) Given a sequence of K integers { N?1??, N?2??, ..., N?K?? }. A continuous subsequence is defined to be { N?i??, N?i+ ...
分类:
编程语言 时间:
2020-06-03 13:26:04
阅读次数:
52