码迷,mamicode.com
首页 > 其他好文
BitmapFactory.Options详解
public?Bitmap inBitmap If set, decode methods that take the Options object will attempt to reuse this bitmap when loading content. public int inDensity The pixel density to use for the bitmap. pub...
分类:其他好文   时间:2015-07-25 15:24:03    阅读次数:146
递归汉诺塔
#includeint c = 0;//全局变量,搬动次数void move(char x, int n, char z){//第n个圆盘从塔座x搬到塔座z printf("第%d步:将%i号从%c移到%c\n", ++c, n, x, z); }void hanoi(int n, char x, char y, char z){//将塔座x上按直径由小到大且自上而下编号为...
分类:其他好文   时间:2015-07-25 15:23:06    阅读次数:136
leetcode - Search a 2D Matrix II
题目: Search a 2D Matrix II Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: Integers in each row are sorted in ascending ...
分类:其他好文   时间:2015-07-25 15:22:45    阅读次数:263
BZOJ 1798 [Ahoi2009]Seq 维护序列seq 线段树
BZOJ 1798 [Ahoi2009]Seq 维护序列seq 线段树...
分类:其他好文   时间:2015-07-25 15:21:06    阅读次数:107
Creo二次开发——文件操作
#include ProMdl.h> ProError ProMdlRename (   ProMdl handle     /* (In)   The model handle   */   ProName new_name     /* (In)   The new name to ass...
分类:其他好文   时间:2015-07-25 15:20:23    阅读次数:576
uva 11045 My T-shirt suits me (二分图匹配 最大流)
uva 11045 My T-shirt suits me题目大意:有n件衣服(一定是6的倍数,六种尺码n / 6套),m个试穿者,每个试穿者都有两种合适的尺码(尺码一共有六种:XS, S, M, L, XL, XXL)。问是否所有试穿者都能找到合适的衣服。解题思路:设置一个超级源点,连向所有的试穿者,容量为1。把相同的衣服,当成不同的,比如XS型号的衣服有三件,我们则把它分为编号为1, 1 + 6...
分类:其他好文   时间:2015-07-25 15:19:34    阅读次数:110
杭电ACM2665——Kth number~~划分树
题目的意思:给点区间[a, b],查找第K大的数,和POJ2104题一样,只是HDU上的时间限制5000MS,用我在POJ上的方法,过不了,会超时。 而这一题的代码,改一下main函数的输入,就可以直接AC了POJ上的2104. 这题,用分桶法,WR,纠结了一晚上,最后还是放弃了,实在不知道错在哪里。于是改用了划分树的方法,学习了划分树的建立和查找。 划分树:主要运用于求解序列中区间[a, ...
分类:其他好文   时间:2015-07-25 15:20:52    阅读次数:159
Activity生命周期-基于实验的最新总结
基于实验的Activity的声明周期总结...
分类:其他好文   时间:2015-07-25 15:19:52    阅读次数:189
设计模式_观察者模式
Observer Pattern      Define a ont-to-many dependency between objects so that when one object changes state,all its dependents are notified and updated automatically.(定义对象间一种一对多的依赖关系,使得每当一个对象改变状态时,...
分类:其他好文   时间:2015-07-25 15:20:55    阅读次数:129
设计模式_门面模式
Facade Pattern     Provide a unified interface to a set of interfaces in a subsystem.Facade defines a higher-level interface that makes the subsystem easier to use.(要求一个子系统的外部与其内部的通信必须通过一个统一的对象进行,门...
分类:其他好文   时间:2015-07-25 15:19:16    阅读次数:98
C - The C Answer (2nd Edition) - Exercise 1-14
/* Write a program to print a histogram of the frequencies of different characters in its input. */ #include #include #define MAXHIST 15 /* max length of histogram */ #define MAXCHAR 128 ...
分类:其他好文   时间:2015-07-25 15:19:27    阅读次数:111
队列的链式表示和实现
队列是操作受限的线性表,只允许在队尾插入元素,在队头删除元素,为了便于插入元素,设立队尾指针。这样,插入元素的操作与队列长度无关 队列的链式存储结构typedef struct QNode { QElemType data; QNode *next; }*QueuePtr; struct LinkQueue { QueuePtr front, rear;//队头,队尾指针...
分类:其他好文   时间:2015-07-25 15:18:37    阅读次数:123
Dubbo--简介
Dubbo是阿里巴巴公司开源的一个高性能优秀的服务框架,使得应用可通过高性能的 RPC 实现服务的输出和输入功能,可以和Spring框架无缝集成。Dubbo致力于提供高性能和透明化的RPC远程服务调用方案,以及SOA服务治理方案。   核心部分包含:     远程通讯: 提供对多种基于长连接的NIO框架抽象封装,包括多种线程模型,序列化,以及“请求-响应”模式的信息交换方式。   ...
分类:其他好文   时间:2015-07-25 15:18:16    阅读次数:116
poj 2253 Frogger(最小生成树)
poj 2253 FroggerDescription Freddy Frog is sitting on a stone in the middle of a lake. Suddenly he notices Fiona Frog who is sitting on another stone. He plans to visit her, but since the water is dir...
分类:其他好文   时间:2015-07-25 15:17:16    阅读次数:138
POJ 3258 River Hopscotch(二分)
River Hopscotch Time Limit: 2000MS   Memory Limit: 65536K Total Submissions: 8975   Accepted: 3859 Description Every year the cows hold an event featuring a peculiar vers...
分类:其他好文   时间:2015-07-25 15:16:55    阅读次数:75
设计模式_备忘录模式
Mememento Pattern      Without violating encapsulation,capture and externalize an object's internal state so that the object can be restored to this state later.(在不破坏封装性的前提下,捕获一个对象的内部状态,并在该对象之外保存这个...
分类:其他好文   时间:2015-07-25 15:18:02    阅读次数:212
设计模式_访问者模式
Visitor Pattern      Repressent an operation to be performed  on the elements of an object structure.Visitor lets you define a new operation without changing the classees of the elements on which it...
分类:其他好文   时间:2015-07-25 15:18:41    阅读次数:109
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!