``` /** * 102. Binary Tree Level Order Traversal * 1. Time:O(n) Space:O(n) * 2. Time:O(n) Space:O(n) */ // 1. Time:O(n) Space:O(n) class Solution { pu... ...
分类:
其他好文 时间:
2020-04-27 13:04:46
阅读次数:
47
Given a matrix of integers A with R rows and C columns, find the maximum score of a path starting at [0,0] and ending at [R-1,C-1]. The score of a pat ...
分类:
其他好文 时间:
2020-04-27 09:21:15
阅读次数:
58
TFindDialog组件用于显示一个查找对话框,允许用户在文件中查找文本。 1、设置“查找”对话框显示时的位置,通常打开查找对话框时,出现的位置可能会影响视觉效果,下面示例可以解决。 procedure TForm1.Button2Click(Sender: TObject); var Point ...
分类:
其他好文 时间:
2020-04-27 09:18:25
阅读次数:
63
A - Buggy Sorting Little boy Valera studies an algorithm of sorting an integer array. After studying the theory, he went on to the practical tasks. As ...
分类:
其他好文 时间:
2020-04-26 11:23:37
阅读次数:
70
一、背景介绍ACL全称accesscontrollist,作为一种路由选择工具更多的是应用于路由过滤,根据ACL编号可以分为:基础访问控制列表高级访问列表指定2层接口组[R1]aclnumber?INTEGER<2000-2999>Basicaccess-list(addtocurrentusingrules)INTEGER<3000-3999>Advancedaccess
分类:
其他好文 时间:
2020-04-26 09:23:49
阅读次数:
94
思路 不用其他数据结构,用递归实现原地逆置 需要设计两个递归函数: + 递归函数1:将栈底元素返回并且移除 + 递归函数2:使用到函数1的reverse方法 代码 执行流程分析 + getAndRemoveLastElement函数执行流程 首先从栈顶到栈尾,元素分别是1,2,3.对于getAndR ...
分类:
其他好文 时间:
2020-04-26 01:43:48
阅读次数:
60
在整合mybatis时,tomcat启动报错,结果发现是逆向工程生成了重复的代码 <resultMap id="BaseResultMap" type="com.jd.pojo.TbUser" > <id column="id" property="id" jdbcType="BIGINT" /> ...
分类:
其他好文 时间:
2020-04-25 21:56:18
阅读次数:
82
Given a set of N (>) positive integers, you are supposed to partition them into two disjoint sets A?1?? and A?2?? of n?1?? and n?2?? numbers, respecti ...
分类:
其他好文 时间:
2020-04-25 19:10:09
阅读次数:
59
Nastya and CBS A string $s$ is given. It consists of $k$ kinds of pairs of brackets. Each bracket has the form $t$ — it is an integer, such that $1 \l ...
分类:
其他好文 时间:
2020-04-25 12:38:47
阅读次数:
74
Given a sequence of positive integers and another positive integer p. The sequence is said to be a perfect sequence if M≤m×p where M and m are the max ...
分类:
其他好文 时间:
2020-04-25 01:04:46
阅读次数:
70