一.最长公共子序列(LCS Longest Common
Subsequence)第一,先说区别,最长公共子串和最长公共子序列是不一样的。最长公共子串不许是连续的,而最长公共子序列可以是不联系的。网络上解释的子序列:一个字符串S,去掉零个或者多个元素所剩下的子串称为S的子序列。最长公共子序列就是寻找...
分类:
其他好文 时间:
2014-05-10 01:12:20
阅读次数:
370
1、 使用table 布局,align="center"2、
尽量不要用padding-left,padding-right样式;3、 CSS的浮动定位;4、 不要用锚标记,EDM中会失效;5、
css样式表不要使用外联式,尽量写入代码行中,不要使用滤镜和任何js脚本6、 通常图片的高和宽都使用wi...
分类:
其他好文 时间:
2014-05-09 18:23:23
阅读次数:
332
Given an unsorted array of integers, find the
length of the longest consecutive elements sequence.For example,Given [100, 4,
200, 1, 3, 2],The longest...
分类:
其他好文 时间:
2014-05-05 23:01:41
阅读次数:
374
Problem
Link:http://oj.leetcode.com/problems/longest-consecutive-sequence/This problem
is a classical problem where we can reduce the running time by ...
分类:
其他好文 时间:
2014-05-05 22:55:22
阅读次数:
552
四轴飞行器最近很火,taobao上卖的匿名、圆点博士、烈火的都很不错,原理图和代码都是开源的。最近在网上看到了一个国外开源的四轴,叫crazyflie
四轴飞行器。我想做一个wifi 四轴 ,现在每个人手里都有手机,手机通过wifi控制四轴岂不是更好。在 amobbs 论坛上就看到了有人做了一个wi...
分类:
其他好文 时间:
2014-05-04 19:13:13
阅读次数:
293
最长公共子系列,简单的dp,不过注意有空格,所以,在读字符串的时候,尽量用gets读,这样基本没问题#include#include#include#includeusing
namespace std;int dp[1001][1001];int MAX(int x,int y){ if (...
分类:
其他好文 时间:
2014-05-04 11:34:41
阅读次数:
294
一、需求描述: 1、读取data.asc文件,分析其连续性;
2、绘制信号图像,并保存。二、UI界面组成: 该应用的UI由以下几个控件组成: 3个PushButton:打开文件、图像保存、退出;
1个Combox:下拉框用于信号的选择; 1个Widget:用于确定绘图区域的坐标,并在Wi...
分类:
其他好文 时间:
2014-05-04 11:28:56
阅读次数:
497
the longest distance of a binary tree
个人信息:就读于燕大本科软件工程专业 目前大三;
本人博客:google搜索“cqs_2012”即可;
个人爱好:酷爱数据结构和算法,希望将来从事算法工作为人民作出自己的贡献;
博客内容:the longest distance of a binary tree;
博客时间:2014-4-...
分类:
其他好文 时间:
2014-05-04 00:28:23
阅读次数:
446
You are given a string, S, and a list of words, L, that are all of the same length. Find all starting indices of substring(s) in S that is a concatenation of each word in L exactly once and without an...
分类:
其他好文 时间:
2014-05-03 21:35:49
阅读次数:
310
queue for max elem, pop, push
个人信息:就读于燕大本科软件工程专业 目前大三;
本人博客:google搜索“cqs_2012”即可;
个人爱好:酷爱数据结构和算法,希望将来从事算法工作为人民作出自己的贡献;
博客内容:the longest distance of a binary tree;
博客时间:2014-4-15;
编...
分类:
其他好文 时间:
2014-05-03 17:13:09
阅读次数:
406