码迷,mamicode.com
首页 >  
搜索关键字:ret    ( 30742个结果
获取url后的指定参数
用法: getParam("v"); function getParam(paramName) { paramValue = "", isFound = !1; if (this.location.search.indexOf("?") == 0 && this.location.search.in ...
分类:Web程序   时间:2017-09-28 11:43:12    阅读次数:260
Tarjan-割点
#include #include #include #include #define ALL(v) v.begin(),v.end() using namespace std; int t[100005],lowlink[100005],step; vector mp[100005]; bool ... ...
分类:其他好文   时间:2017-09-28 11:39:14    阅读次数:125
[LintCode] Permutations
Given a list of numbers, return all possible permutations. You can assume that there is no duplicate numbers in the list. Given a list of numbers, ret ...
分类:其他好文   时间:2017-09-28 10:07:25    阅读次数:190
87. Scramble String
class Solution { public boolean isScramble(String s1, String s2) { if(s1.length()==0||s1.equals(s2)) return true; int[] cnt=new int[128]; for(int i=0;... ...
分类:其他好文   时间:2017-09-28 10:04:45    阅读次数:124
设计模式之Factory工厂模式
在上一章,模板模式中,我们在父类规定处理的流程,在子类中实现具体的处理。如果我们将该模式用于生成实例,便演变成了Factory模式,即工厂模式。 在Factory模式中,父类决定实例的生成方式,但并不决定所要生成的具体的类,具体处理全部交给子类进行。 设计实例则是模仿Spring框架进行的操作,模拟... ...
分类:其他好文   时间:2017-09-28 10:04:26    阅读次数:176
jQuery 文档操作之prepend() 和prependTo()方法.
//prepend() $("#btnpre").click(function(){ //该方法在被选元素的开头(仍位于内部)插入指定内容。 $("div").prepend("Hello prepend!"); }); //prependTo() $("#btnpreto").click(func... ...
分类:Web程序   时间:2017-09-28 09:54:14    阅读次数:200
取尺法(算法)
1 /*常用的解题技巧:尺取法 2 尺取法:顾名思义,像尺子一样取一段,借用挑战书上面的话说,尺取法通常是对数组保存一对下标,即所选取的区间的左右端点,然后根据实际情况不断地推进区间左右端点以得出答案。之所以需要掌握这个技巧,是因为尺取法比直接暴力枚举区间效率高很多,尤其是数据量大的 3 时候,所以... ...
分类:编程语言   时间:2017-09-28 09:54:03    阅读次数:177
线性表顺序表示和实现
/* c2-1.h 线性表的动态分配顺序存储结构 */ #define LIST_INIT_SIZE 10 /* 线性表存储空间的初始分配量 */ #define LISTINCREMENT 2 /* 线性表存储空间的分配增量 */ typedef struct { ElemType *elem; ...
分类:其他好文   时间:2017-09-28 09:51:27    阅读次数:215
Flask+uwsgi+Nginx环境搭建
先安装以下的软件(如果有的话,就可以不安装了,例如使用rpm -qa zlib-devel先查看下)yum install zlib-devel -yyum install openssl-devel -y tar -zxvf解压./configure --prefix=/usr/local/pyt ...
分类:其他好文   时间:2017-09-28 00:32:24    阅读次数:210
105. Construct Binary Tree from Preorder and Inorder Traversal
Given preorder and inorder traversal of a tree, construct the binary tree. Note:You may assume that duplicates do not exist in the tree. 解题思路:最经典的递归,已 ...
分类:其他好文   时间:2017-09-28 00:31:25    阅读次数:134
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!