Welcome to MarkdownPad 2MarkdownPad is a
full-featured Markdown editor for Windows.Built exclusively for MarkdownEnjoy
first-class Markdown support wi...
分类:
其他好文 时间:
2014-05-16 21:05:28
阅读次数:
265
问题描述:超市有4种包装的鸡蛋,分别是3个一盒,6个一盒,9个一盒和20个一盒。问顾客要买N个鸡蛋时,所有的组合方案。(Morgen Stanley 2014
Intern).核心代码: 1 void BuyeggsCore(vector &coins, const int target, int ...
分类:
其他好文 时间:
2014-05-16 20:17:07
阅读次数:
289
官方demo见
https://github.com/square/otto注意自己该编译版本为2.3以上,默认的1.6不支持match_parent属性,导致布局文件出错。另外需要手动添加android-support-v4和otto到自己的libs文件夹。主要代码逻辑:1,在主页面点clear按...
分类:
移动开发 时间:
2014-05-16 19:19:36
阅读次数:
334
第1章容器第1条:慎重选择容器类型。标准STL序列容器:vector、string、deque和list。标准STL关联容器:set、multiset、map和multimap。非标准序列容器slist和rope。slist是一个单向链表,rope本质上是一“重型”string。非标准的关联容器ha...
分类:
编程语言 时间:
2014-05-16 07:50:48
阅读次数:
390
色彩及图像基础(二)学习时间:2014.04.30学到了……1. 图形分为矢量图和位图。 2.
矢量图(vector - based image),是用一系列计算机指令来描述和记录一幅图,这幅图可分解为一系列子图如点、线、面等。 3.
位图(bit-mapped image),是用像素点来描述或映射...
分类:
其他好文 时间:
2014-05-16 06:54:25
阅读次数:
346
题目: Design and implement a data structure for Least
Recently Used (LRU) cache. It should support the following operations:getandset.
get(key)- Get ...
分类:
其他好文 时间:
2014-05-16 05:42:29
阅读次数:
280
快速排序最坏情况下时间复杂度是O(n*n),但是它平均时间复杂度是O(N*logn),并且常数因子很小,可实现就地排序,所以被作为内排序的常用排序方法.
#include
using namespace std;
void swap(int &i,int &j)
{
int temp=i;
i=j;
j=temp;
}
int partition(int *vector...
分类:
其他好文 时间:
2014-05-15 06:05:35
阅读次数:
254
http://blog.csdn.net/xiaanming/article/details/9031141http://www.cnblogs.com/androidez/archive/2013/07/21/3203964.html如果在有用到过viewpager或者fragmentActivi...
分类:
移动开发 时间:
2014-05-14 10:13:24
阅读次数:
354
//升序void insertion_sort(vector &num){
for(int i = 1; i =0 && num[j] >= val){
num[j+1] = num[j];...
分类:
其他好文 时间:
2014-05-13 11:42:59
阅读次数:
190