首页 > 2015年03月26日 > 全部分享
[LeetCode 147] Insertion Sort List
题目链接:insertion-sort-list /** * Sort a linked list using insertion sort. * */ public class InsertionSortList { public class ListNode { int val; ListNode next; ListNode(int x) { va...
分类:其他   时间:2015-03-26 09:14:40    收藏:0  评论:0  赞:0  阅读:209
node canvas模块的安装
最近要用node做个验证码,涉及到了canvas这个模块 但是在windows下安装问题太多了,百度上那些教程现在都不行了,然后我去github找到了解决的办法 参考了 https://github.com/Automattic/node-canvas/wiki/Installation---Windows#installing-cairo-library 最终安装成功了,主要大家可能...
分类:其他   时间:2015-03-26 09:14:30    收藏:0  评论:0  赞:0  阅读:378
ural 1057 Amount of degrees (数位dp)
1057. Amount of Degrees Time limit: 1.0 second Memory limit: 64 MB Create a code to determine the amount of integers, lying in the set [X;Y] and being a sum of exactlyK different integer de...
分类:其他   时间:2015-03-26 09:14:20    收藏:0  评论:0  赞:0  阅读:302
文章标题
BiorhythmsTime Limit: 1000MS Memory Limit: 10000K Total Submissions: 117973 Accepted: 37026 DescriptionSome people believe that there are three cycles in a person’s life that start the day...
分类:其他   时间:2015-03-26 09:14:10    收藏:0  评论:0  赞:0  阅读:210
HDU_1247_Hat’s Words
Hat’s Words Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 8886    Accepted Submission(s): 3194 Problem Description A hat’s word is ...
分类:其他   时间:2015-03-26 09:14:00    收藏:0  评论:0  赞:0  阅读:230
HDOJ 题目2189 Swap(二分图最大匹配,输出路径)
Swap Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 1789    Accepted Submission(s): 598 Special Judge Problem Description Given an ...
分类:其他   时间:2015-03-26 09:13:50    收藏:0  评论:0  赞:0  阅读:268
康拓展开—理解
1公式编辑 把一个整数X展开成如下形式: X=a[n]*(n-1)!+a[n-1]*(n-2)!+...+a[i]*(i-1)!+...+a[2]*1!+a[1]*0![1]  其中,a为整数,并且0 理解: 对一组数进行全排列后,可以得出它在其中的位置数(由小到大), 另外也是最重要的,可以实现对数据的压缩! public class Main7 { pub...
分类:其他   时间:2015-03-26 09:13:40    收藏:0  评论:0  赞:0  阅读:153
Java反射机制
概述JAVA反射机制是在运行状态中,对于任意一个类,都能够知道这个类的所有属性和方法;对于任意一个对象,都能够调用它的任意一个方法和属性;这种动态获取的信息以及动态调用对象的方法的功能称为java语言的反射机制。JAVA反射(放射)机制:“程序运行时,允许改变程序结构或变量类型,这种语言称为动态语言”。从这个观点看,Perl,Python,Ruby是动态语言,C++,Java,C#不是动态语言。但是...
分类:编程语言   时间:2015-03-26 09:13:30    收藏:0  评论:0  赞:0  阅读:267
CodeForces 520B Two Buttons bfs+优先队列
#include #include #include #include using namespace std; const int maxn = 10010; const int inf = 0x7fffffff; int vis[maxn*10] ; int n,m;int ans = inf; struct node { int step ; int value ; };...
分类:其他   时间:2015-03-26 09:13:20    收藏:0  评论:0  赞:0  阅读:339
HDOJ 1003 Max Sum(新手动态规划)
Max Sum Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 162353    Accepted Submission(s): 38007 Problem Description Given a sequenc...
分类:其他   时间:2015-03-26 09:13:10    收藏:0  评论:0  赞:0  阅读:232
透过J2Cache的吐槽,领悟代码的设计
经常去开源社区的,大部分应该都知道J2Cache吧,不过没听说过也没关系,这 是 开源中国社区OSChina 目前正在使用的两级缓存框架,托管在OSG@Git上,大部分由设计人红薯来维护。它的第一级缓存使用 Ehcache,第二级缓存使用 Redis 。由于大量的缓存读取会导致 L2 的网络成为整个系统的瓶颈,因此 L1 的目标是降低对 L2 的读取次数。该缓存框架主要用于集群环境中。单机也可...
分类:系统服务   时间:2015-03-26 09:13:00    收藏:0  评论:0  赞:0  阅读:421
poj 3186 Treats for the Cows(区间dp)
Treats for the Cows Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 4286   Accepted: 2173 Description FJ has purchased N (1 The treats are interesting fo...
分类:其他   时间:2015-03-26 09:12:50    收藏:0  评论:0  赞:0  阅读:233
HDU 1711 Number Sequence (kmp 已被搞死。)
KMP算法...
分类:其他   时间:2015-03-26 09:12:30    收藏:0  评论:0  赞:0  阅读:233
iOS 居中的总结
iOS 居中的总结...
分类:移动平台   时间:2015-03-26 09:12:20    收藏:0  评论:0  赞:0  阅读:238
自制小型图片采集程序(绕过防盗链)
index.php body{font-size:12px;margin:0 auto;padding:0;} p,ul,li,body,a,small,H1,H2,H3,H4,dl,dt,dd,em,form{list-style:none;font-style:normal;margin:0;padding:0;}.fColor,.fColor a{color:#...
分类:其他   时间:2015-03-26 09:12:10    收藏:0  评论:0  赞:0  阅读:362
linux目标文件ELF的格式
现在PC上流行的可执行文件格式主要是windows下的PE和linux下的ELF文件,他们都是COFF格式文件变种。目标文件时源代码编译后但未进行链接的那些中间文件,它跟可执行文件的格式几乎没有什么区别,因此目标文件(.o文件)也和可执行文件使用一样的储存格式。 在linux中除了可执行文件还有几种文件也是使用ELF格式储存的,其中包括动态库文件(.so),可重定位文件(.o),核心转储文件(进...
分类:系统服务   时间:2015-03-26 09:12:00    收藏:0  评论:0  赞:0  阅读:418
php自制小型分页代码
500) { for($i=($line-1)*500;$i<$line*500;$i++) { echo $f[$i]."";# c...
分类:Web开发   时间:2015-03-26 09:11:50    收藏:0  评论:0  赞:0  阅读:299
[LeetCode 109] Convert Sorted List to Binary Search Tree
题目链接:convert-sorted-list-to-binary-search-tree /** * Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST. * */ public class Conve...
分类:其他   时间:2015-03-26 09:11:40    收藏:0  评论:0  赞:0  阅读:241
HDU 1285 确定比赛名次(拓扑排序)
拓扑排序的思想:找到入度为0的点,此点指向的所有点入度减一,删去此点。重复此操作。 队列实现:(1)找到入度为0的点,入队。 (2)出队时,此点指向的所有点入度减一 (3)此时,若有入度为0的,入队 (4)重复以上操作。 题目要求同个等级时编号小的先出,所以用优先队列。...
分类:编程语言   时间:2015-03-26 09:11:30    收藏:0  评论:0  赞:0  阅读:298
Objective-C 相关术语总结
读书笔记:对于IOS中术语的总结 1. 区块:Apple公司对C语言的一种扩展。区块具有和函数相似的语义,可以获取区块定义范围内变量的值,可以将它赋值给一个变量,作为函数方法的参数进行传递。区块能够有效地调度到另一个线程或处理器执行。 资料:http://www.cnblogs.com/jy578154186/archive/2012/09/30/2709130.html 2. 分类:特定名...
分类:其他   时间:2015-03-26 09:11:24    收藏:0  评论:0  赞:0  阅读:304
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!