码迷,mamicode.com
首页 > 全部
SqlLite 基本操作
1.数据类型 ● SQLite将数据划分为以下?几种存储类型: ● integer : 整型值 ● real : 浮点值 ...
分类:数据库   时间:2015-08-11 21:19:30    阅读次数:156
Manacher算法
【题目】给定一个字符串str,返回str中的最长回文子串的长度。【举例】str=“123”。其中的最长回文子串“1”或者“2”或者“3”,所以返回1。str=“abc1234321ab”。其中的最长回文子串“1234321”,所以返回7。【要求】如果str长度为N,时间复杂度为O(N)。题目分析:1...
分类:编程语言   时间:2015-08-11 21:17:51    阅读次数:153
C语言基础_函数指针
一、函数 实现某特定功能的代码1)函数名与数组名一样是地址2)函数指针 指向函数的指针 可以通过函数指针调用指向的函数3)返回值类型 (*函数指针名)(参数类型) = 函数名int maxValue(int a,int b){ return a > b ? a : b;}int (*p)(i...
分类:编程语言   时间:2015-08-11 21:19:19    阅读次数:138
扫描线法
SD集训divisors题目大意:给定一个1~n的排列p,求l#include#include#include#define maxnode 200005using namespace std;struct use{ int l,r,po;}ask[maxnode]={0},bei[40000...
分类:其他好文   时间:2015-08-11 21:17:12    阅读次数:122
三层架构
1. 架构: ·架构一般是针对整个系统的,并非针对某个单独的问题(单独问题可以用模式等来解决) ·针对整个系统的"一张蓝图",对系统的抽象。架构与具体的语言品台无关。 2.模式: ·软件开发中遇到的一些特定的问题,前任总结出来特定的经验、解决方法。 ·Gof 23中设计模式 ·MVC、mvp等模式 ...
分类:其他好文   时间:2015-08-11 21:17:41    阅读次数:110
DjangoWeb: 快速搭建Blog
参考自:django 快速搭建bloghttp://www.cnblogs.com/fnng/p/3737964.html1.创建工程:django-admin.py startproject MySitemanage.py-----Django项目里面的工具,通过它可以调用djangoshell和...
分类:Web程序   时间:2015-08-11 21:16:47    阅读次数:141
动态规划——J 括号配对问题
J -括号匹配Time Limit:1000MSMemory Limit:65536KB64bit IO Format:%I64d & %I64uSubmitStatusDescriptionWe give the following inductive definition of a “regul...
分类:其他好文   时间:2015-08-11 21:16:58    阅读次数:101
scanf 和 scanf_s
scanf 和 scanf_sscanf()函数是标准C中提供的标准输入函数,用以用户输入数据scanf_s()函数是Microsoft公司Visual Studio开发工具提供的一个与scanf()功能相同的安全标准输入函数 从vc++2005开始,VS系统提供了scanf_s()。在调用该函数....
分类:其他好文   时间:2015-08-11 21:17:26    阅读次数:109
hdoj 2094 产生冠军
产生冠军Time Limit: 1000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 11444Accepted Submission(s): 5299Problem Descr...
分类:其他好文   时间:2015-08-11 21:16:26    阅读次数:113
javascript篇:创建对象模式
/*对象创建模式 除了普通的对象字面量和使用构造函数来创建对象外,还有很多更好的对象创建模式 1、命名空间 2、依赖声明 3、模块模式 4、沙箱模式 它们都帮助我们组织应用程序的代码结构,降低隐含地全局变量带来的后果*//*Before*/// 反模块设计Parent = func...
分类:编程语言   时间:2015-08-11 21:16:05    阅读次数:172
hdu 5373 模拟
简单模拟题,可以利用一下能被11整除的数的特点:奇数位的数字和与偶数位的数字和之差能被11整除。 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 const int N = 1000000; 8 ...
分类:其他好文   时间:2015-08-11 21:15:37    阅读次数:91
PAT 1038. Recover the Smallest Number (30)
1038. Recover the Smallest Number (30)Given a collection of number segments, you are supposed to recover the smallest number from them. For example, g...
分类:其他好文   时间:2015-08-11 21:17:55    阅读次数:102
C 数据类型 常量 变量
C 数据类型 常量 变量
分类:其他好文   时间:2015-08-11 21:16:22    阅读次数:114
测试美化博客使用
cmd-line模式又有3个类型:Ex 命令(ex commands)、查找模式(Search patterns)、Filter 命令(Filter commands)。本文主要重点的是Ex 命令和Search patterns。Filter 命令暂时用的场景比较少,如果有更适合的场景再补充。目.....
分类:其他好文   时间:2015-08-11 21:17:16    阅读次数:109
PAT 1047. Student List for Course (25)
1047. Student List for Course (25)Zhejiang University has 40000 students and provides 2500 courses. Now given the registered course list of each stude...
分类:其他好文   时间:2015-08-11 21:14:54    阅读次数:146
动态规划——G 回文串
G -回文串Time Limit:3000MSMemory Limit:65536KB64bit IO Format:%I64d & %I64uSubmitStatusDescriptionA palindrome is a symmetrical string, that is, a string...
分类:其他好文   时间:2015-08-11 21:15:44    阅读次数:83
动态规划——H 最少回文串
We say a sequence of characters is a palindrome if it is the same written forwards and backwards. For example, ‘racecar’ is a palindrome, but ‘fastcar...
分类:其他好文   时间:2015-08-11 21:16:23    阅读次数:114
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!