递归解决方法 其他人解法也是大同小异 int climbStairs(int n){ int x1=0,x2=1; int i; int sum; for(i=1;i memo = new HashMap(); public int climbStairs(int n) { if(n ...
分类:
其他好文 时间:
2019-07-08 13:28:01
阅读次数:
73
前言 关于react性能优化,在react 16这个版本,官方推出fiber,在框架层面优化了react性能上面的问题。由于这个太过于庞大,我们今天围绕子自组件更新策略,从两个及其微小的方面来谈react性能优化。 其主要目的就是防止不必要的子组件渲染更新。 子组件何时更新? 首先我们看个例子,父组 ...
分类:
其他好文 时间:
2019-06-29 19:15:03
阅读次数:
89
procedure TForm4.Button2Click(Sender: TObject); var sResponse: string; EnvStr : TStringStream; begin EnvStr := TStringStream.Create(Memo.Text, TEncodi... ...
分类:
Web程序 时间:
2019-06-20 17:09:56
阅读次数:
138
#coding=utf-8# 递归class Solution1(object): def integerBreak(self, n): """ :type n: int :rtype: int """ self.memo = [-1 for i in range(n+1)] # 将n进行分割(至少 ...
分类:
其他好文 时间:
2019-03-17 14:06:21
阅读次数:
202
class Solution(object): def climbStairs(self, n): """ :type n: int :rtype: int """ self.memo = [-1 for i in range(n+1)] return self.calcWays1(n) def c ...
分类:
其他好文 时间:
2019-03-17 13:53:35
阅读次数:
139
@authot: 白袍小道 以下为Unreal4.18版本中对GPUBuffer部分的分析结果 (插入:比之够着,知至目的) Memo of GBuffer (UE4.18) GBufferA : Normal(rgb), PerObjectGBufferData(a) GBufferB : Met... ...
分类:
其他好文 时间:
2019-02-26 01:22:51
阅读次数:
335
Got the idea form this lesson. Not sure whether it is the ncessary, no othere better way to handle it. Have a TodoList component, every time types in ...
分类:
其他好文 时间:
2019-02-25 18:13:49
阅读次数:
122
有记忆功能的fibonacci数列 var memorizer = function( memo, formula ){ var recur = function( n ){ var result = memo[ n ] ; if( typeof result != "number" ){ resu ...
分类:
其他好文 时间:
2019-01-28 11:00:01
阅读次数:
177
yum不能正常动作,惯性认为是需要替换BaseURL,结果后来才发现是Gateway不知什么时候被错误设定了,memo如下。 现象 表现于yum不能正常动作,确认ping的操作,发现是不能解析DNS 1 2 3 确认DNS设定 1 2 3 4 5 DNS正常设定,表明问题更加基础,应该在于网络完全没 ...
分类:
其他好文 时间:
2019-01-20 12:01:27
阅读次数:
198
Docker刚刚发行了EE版本和CE版本, 在这篇Memo之中将会纪录使用Easypack安装第一版DockerCE的方法. 脚本位置 项目详细 安装脚本 https://github.com/liumiaocn/easypack/tree/master/docker OS CentOS7 Linu ...
分类:
其他好文 时间:
2018-12-22 11:51:02
阅读次数:
243