9 1 使用斐波那契数列引入了动态规划的概念 一、计算斐波那契数列的第 $n$ 项数值 1、斐波那契数列的定义 斐波那契数列是通过"递归"定义的,通过这个递归关系式,我们可以知道斐波那契数列中任意一个位置的数值。 $$ \begin{equation}\begin{split} F(0) & = 0 ...
分类:
其他好文 时间:
2018-03-21 13:46:26
阅读次数:
168
1.不知道自己高度和父容器高度的情况下, 利用绝对定位只需要以下三行: parentElement{ position:relative; } childElement{ position: absolute; top: 50%; transform: translateY(-50%); } 2.若 ...
分类:
Web程序 时间:
2018-03-21 11:35:12
阅读次数:
171
Jlink版本号:J-flash ARM V4.12 J-Flash ARM的配置。 一般说来file-->open project里面会找到一些*.jflash的配置文件,载入他们即可了,可是没找到适合S3C2440的。所以自己建了一个mini2440.jflash,手动进行配置: j-link设 ...
分类:
其他好文 时间:
2018-03-20 13:52:34
阅读次数:
167
[抄题]: Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brackets must close i ...
分类:
其他好文 时间:
2018-03-18 22:28:03
阅读次数:
150
init.sql文件 / 数据导入: Navicat Premium Data Transfer Source Server : localhost Source Server Type : MySQL Source Server Version : 50624 Source Host : loca ...
分类:
数据库 时间:
2018-03-17 17:57:22
阅读次数:
276
<div id="parent"> <div id="son"></div> </div> #parent{ display: table-cell; vertical-align: middle; } 设置tabl-cell的元素,宽度和高度的值设置百分比无效,需要给它的父元素设置display: ...
分类:
其他好文 时间:
2018-03-16 15:09:29
阅读次数:
169
先来看看问题: 问题:1.为何onfoucs事件在这段代码中是最后才执行的?2.这里有涉及到异步?不然的话为何onfocus事件还没执行,就继续解析下一段代码了?代码如图: 我在chrome,FF浏览器的运行结果得到的顺序都是:1.console.log(document.readyState)2. ...
分类:
Web程序 时间:
2018-03-15 00:34:23
阅读次数:
197
[抄题]: On a staircase, the i-th step has some non-negative cost cost[i] assigned (0 indexed). Once you pay the cost, you can either climb one or two st ...
分类:
其他好文 时间:
2018-03-13 13:58:54
阅读次数:
156
Install Lex on Ubuntu 16.04. Lex is in flex and Yacc in bison. Create an empty file and edit it. Save it as lol.l And we can run it by typing An examp ...
分类:
系统相关 时间:
2018-03-13 10:21:47
阅读次数:
219