有效括号的嵌套深度。题意是给一个用字符串表示的嵌套括号,请按规则返回这个字符串的嵌套深度depth。嵌套深度的定义如下, depth("") = 0 depth(A + B) = max(depth(A), depth(B)), where A and B are VPS's depth("(" + ...
分类:
其他好文 时间:
2020-04-01 09:18:51
阅读次数:
87
先做个热身 //递归:函数执行的时候自己调用自己 // function fn(){ // fn(); //Uncaught RangeError: Maximum call stack size exceeded // 这种死递归会导致栈溢出 // } // fn(); // function f ...
分类:
编程语言 时间:
2020-03-31 12:16:24
阅读次数:
77
Given a non-empty array of integers, return the third maximum number in this array. If it does not exist, return the maximum number. The time complexi ...
分类:
其他好文 时间:
2020-03-30 12:40:30
阅读次数:
66
设置gunicorn 参数--limit-request-line 8188 (默认是4094) 参考 limit_request_line --limit-request-line INT 4094 The maximum size of HTTP request line in bytes. T ...
分类:
其他好文 时间:
2020-03-29 12:26:51
阅读次数:
63
Changes in MySQL 5.7.13 (2016-06-02, General Availability) Account Management Notes In MySQL 5.7.8, the maximum length of MySQL user names was increas ...
分类:
数据库 时间:
2020-03-27 21:40:56
阅读次数:
93
报错原因: 当前组件的名字不能和他使用其他组件注册的名字相同 不然这样会陷入死循环,所以js内存溢出了 ...
分类:
其他好文 时间:
2020-03-27 19:55:24
阅读次数:
260
RecursionError:在调用Python对象时超过最大递归深度 项目 python flask: 在pycharm软件里, default settings --> Build, Execution, Deployment -> Python Debugger. 找到 "Gevent com ...
分类:
其他好文 时间:
2020-03-26 01:45:28
阅读次数:
137
MTU MTU(Maximum Transmission Unit)最大传输单元,在TCP/IP协议族中,指的是IP数据报能经过一个物理网络的最大报文长度,其中包括了IP首部(从20个字节到60个字节不等),一般以太网的MTU设为1500字节,加上以太帧首部的长度14字节,也就是一个以太帧不会超过1 ...
分类:
其他好文 时间:
2020-03-22 19:51:24
阅读次数:
75
方案一: <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/> 方案二: document.doc ...
分类:
移动开发 时间:
2020-03-22 17:32:01
阅读次数:
164
一、题目说明 题目152. Maximum Product Subarray,给一列整数,求最大连续子序列,其乘积最大。难度是Medium! 二、我的解答 这个题目,用双重循环就可以了。 性能如下: 三、优化措施 仔细再读读题目,一列整数,上述方法太“通用”,一次循环就可以了。 ...
分类:
其他好文 时间:
2020-03-22 10:39:31
阅读次数:
58