码迷,mamicode.com
首页 > 其他好文
Manacher模板
Manacher模板求最长回文子串。#include#include#include#include#include#include#include#include#include#include#include#include#include#define ll long long#define ...
分类:其他好文   时间:2015-07-27 14:53:19    阅读次数:128
运行期可以变动大小和尺寸的自定义控件、
unitCcDrag; interface uses Windows,SysUtils,Classes,Graphics,Controls,Forms; type TMousePosition=(mpNone,mpRightBottom,mpRight,mpBottom); TCcDrag=...
分类:其他好文   时间:2015-07-27 14:51:57    阅读次数:119
DOM 事件
事件模型 事件冒泡:事件源从里边元素逐级传到外层元素 (一般使用事件冒泡) 事件捕获:从根元素传到目标元素 addEventListener("click",functionName,false); // false 冒泡执行,true捕获执行事件处理程序 传统方式 点我 // 这种方式脚本和htm...
分类:其他好文   时间:2015-07-27 14:51:15    阅读次数:160
[OpenXml] Generate excel in memory and dump to file
public static void GenerateExcelFromStream(){ using (MemoryStream memoryStream = new MemoryStream()) { using (SpreadsheetDocument document =...
分类:其他好文   时间:2015-07-27 14:52:39    阅读次数:135
POJ 1201 && HDU 1384 Intervals(差动制动系统)
职务地址:POJ 1201 HDU 1384依据题目意思。能够列出不等式例如以下:Sj-Si>=c;Si-S(i-1)>=0;S(i-1)-Si>=-1;然后用最短路spfa来解决这个不等式。用max来当源点,0为终点。终于的-d[0]就是答案。代码例如以下:#include #include #i...
分类:其他好文   时间:2015-07-27 14:51:50    阅读次数:107
FTP Download File By Some Order List
@Echo OffREM -- Define File Filter, i.e. files with extension .RBSet FindStrArgs=/E /C:".asp"REM -- Extract Ftp Script to create List of FilesSet "Ftp...
分类:其他好文   时间:2015-07-27 14:49:50    阅读次数:109
置换测试: Mock, Stub 和其他
简介在理想情况下,你所做的所有测试都是能应对你实际代码的高级测试。例如,UI 测试将模拟实际的用户输入(Klaas 在他的文章中有讨论)等等。实但际上,这并非永远都是个好主意。为每个测试用例都访问一次数据库或者旋转一次 UI 会使你的测试跑得非常慢,这会降低你的生产力,并导致你不去经常跑那些测试。若...
分类:其他好文   时间:2015-07-27 14:51:08    阅读次数:159
字典升序问题
1 // 字典升序问题 2 #include // std::cout 3 #include // std::advance 4 #include // std::list 5 #include 6 using namespace std; 7 8...
分类:其他好文   时间:2015-07-27 14:48:35    阅读次数:96
初学structs2,表单验证
一、简单表单验证示例structs.xml配置 /validate/index.jsp /validate/index.jsp 前端index页面部分代码:fielderror显示错误信息,如果前端页面HTML...
分类:其他好文   时间:2015-07-27 14:49:03    阅读次数:149
成为高级程序员的 10 个步骤
转自:http://developer.51cto.com/art/201501/463946.htmWhat软件工程师的职业生涯要历经以下几个阶段:初级、中级,最后才是高级。这篇文章主要是讲如何通过 10 个步骤助你成为一名高级软件工程师。Why得到更多的报酬!因为你的薪水会随着你水平的提高而增加...
分类:其他好文   时间:2015-07-27 14:48:36    阅读次数:98
Binary Tree Inorder Traversal
Given a binary tree, return theinordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3return[1,3,2].Note...
分类:其他好文   时间:2015-07-27 14:49:21    阅读次数:101
[转]RecyclerView初探
原文地址:http://www.grokkingandroid.com/first-glance-androids-recyclerview/RecyclerView是去年谷歌I/O大会上随Android L预览一起发布的,接下来的几篇译文将会从各个方面对RecyclerView做一个全面的介绍:本...
分类:其他好文   时间:2015-07-27 14:50:11    阅读次数:114
(easy)LeetCode 191.Number of 1 Bits
Number of 1 BitsWrite a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as theHamming weight).For exampl...
分类:其他好文   时间:2015-07-27 14:47:21    阅读次数:98
RMQ(模板 ST 区间最值,频繁的间隔时间)
PS:介绍:http://blog.csdn.net/liang5630/article/details/7917702RMQ算法。是一个高速求区间最值的离线算法,预处理时间复杂度O(n*log(n))。查询O(1)。所以是一个非常高速的算法,当然这个问题用线段树相同可以解决。1、求区间的最大值和最...
分类:其他好文   时间:2015-07-27 14:46:43    阅读次数:126
Course Schedule II
There are a total ofncourses you have to take, labeled from0ton - 1.Some courses may have prerequisites, for example to take course 0 you have to firs...
分类:其他好文   时间:2015-07-27 14:45:46    阅读次数:112
Integer和Integer数据的大小比较
public class Test{public static void main(String[] args){Integer i1 = 100;Integer i2 = 100;if(i1 == i2){System.out.println("i1==i2");}else{System.out....
分类:其他好文   时间:2015-07-27 14:44:41    阅读次数:81
SCC(强连通分量)
1.定义:在有向图G中,如果两个顶点间至少存在一条路径,称两个顶点强连通(SC---strongly connected)。有向图中的极大强连通子图,成为强连通分量(SCC---strongly connected components)。下图中,子图{1,2,3,4}为一个强连通分量,因为顶点1,...
分类:其他好文   时间:2015-07-27 14:44:03    阅读次数:103
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!