不管前方的路有多苦,只要走的方向正确,不管多么崎岖不平,都比站在原地更接近幸福。——《千与千寻》 创业公司里不缺点子,好的想法总是那么令人振奋人心。很多情况下我们会听到这样的话——“诶,这想法很不错诶”。然后呢?大部分情况下没有然后...... 算上执行成本与时间成本,让一个完美的想法变为现实,从来 ...
分类:
其他好文 时间:
2016-08-10 22:20:15
阅读次数:
178
Description A subsequence of a given sequence is the given sequence with some elements (possible none) left out. Given a sequence X = <x1, x2, ..., xm ...
分类:
其他好文 时间:
2016-08-10 22:19:15
阅读次数:
216
一.Debian系列:Debian、Ubuntu等1.修改apt-get源: vim /etc/apt/sources.list deb http://mirrors.ustc.edu.cn/kali sana main non-free contrib deb http://mirrors.ust ...
分类:
系统相关 时间:
2016-08-10 22:18:48
阅读次数:
400
一、转场动画简单介绍 CAAnimation的子类,用于做转场动画,能够为层提供移出屏幕和移入屏幕的动画效果。iOS比Mac OS X的转场动画效果少一点 UINavigationController就是通过CATransition实现了将控制器的视图推入屏幕的动画效果 属性解析: type:动画过 ...
分类:
移动开发 时间:
2016-08-10 22:17:47
阅读次数:
193
1.用引用(遥控器)操控对象(电视机):String s = "asdf"; 2.必须由你创建所有对象:String s = new String("asdf"); 2(1).存储到什么地方:寄存器(快,不能直接控制)、堆栈(1.堆栈指针若向下移动,则分配新的内存;若向上移动,则释放那些内存。2.J ...
分类:
编程语言 时间:
2016-08-10 22:18:54
阅读次数:
160
// called when the recognition of one of gestureRecognizer or otherGestureRecognizer would be blocked by the other // return YES to allow both to reco ...
分类:
Web程序 时间:
2016-08-10 22:17:54
阅读次数:
167
题意: Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brackets must close in ...
分类:
其他好文 时间:
2016-08-10 22:17:33
阅读次数:
135
回顾: 进程间通信方式: 信号,管道 消息队列,共享内存,信号量 sokcet 信号: 本质就是软中断 signal(信号,函数指针); void func(int); kill(pid,signo); raise(signo); alarm(seconds); pause(); kill -9 P ...
分类:
其他好文 时间:
2016-08-10 22:18:33
阅读次数:
183
两只青蛙在网上相识了,它们聊得很开心,于是觉得很有必要见一面。它们很高兴地发现它们住在同一条纬度线上,于是它们约定各自朝西跳,直到碰面为止。可是它们出发之前忘记了一件很重要的事情,既没有问清楚对方的特征,也没有约定见面的具体位置。不过青蛙们都是很乐观的,它们觉得只要一直朝着某个方向跳下去,总能碰到对 ...
分类:
其他好文 时间:
2016-08-10 22:17:15
阅读次数:
143
唯一注意的地方是match这个参数, 不知道为什么写成 match:'android:versionCode="\d+\"' 就不行, 非得老老实实地把\d改成 [0-9]才行. ...
分类:
移动开发 时间:
2016-08-10 22:19:01
阅读次数:
424
此文转载别人,希望自己能够做完这些题目! 1.POJ动态规划题目列表 容易:1018, 1050, 1083, 1088, 1125, 1143, 1157, 1163, 1178, 1179, 1189, 1208, 1276,1322, 1414, 1456, 1458, 1609, 1644, ...
分类:
其他好文 时间:
2016-08-10 22:18:40
阅读次数:
275
A long-distance telephone company charges its customers by the following rules: 一个长途电话公司费用告诉它的顾客需要遵循以下的规则 Making a long-distance call costs a certain ...
分类:
其他好文 时间:
2016-08-10 22:17:29
阅读次数:
167
题目地址:http://codeforces.com/problemset/problem/589/B
思路:
#include
#include
#include
#include
#define debu
using namespace std;
const int maxn=4000+50;
typedef long long LL;
struct Node
{
int r,c;...
分类:
编程语言 时间:
2016-08-10 21:12:44
阅读次数:
200
题目链接:点击打开链接
思路:
该题的关键是怎么把两个栈合并, 我们可以使用一种叫左偏树的数据结构, 满足堆的性质和集合的性质,支持在O(logn)的复杂度下进行删除堆顶元素, 插入一个元素,合并两个堆。
细节参见代码:
#include
using namespace std;
typedef pair P;
const int maxn = 152400;
P v[maxn];
in...
分类:
其他好文 时间:
2016-08-10 21:10:37
阅读次数:
147
Item 12-复制对象时忽忘其每一个成分(Copy all parts of an object)
设计良好之面向对象系统(OO-system)会将对象的内部封装起来,只留两个函数负责将对象拷贝(复制),那便是带着适切名称的copy构造函数和copy assignment操作符,称它们为copying函数。
如果是"编译器生成版本"的行为:将被拷对象的所有成员变量都做一份拷贝。
如果是自己...
分类:
编程语言 时间:
2016-08-10 21:10:20
阅读次数:
238
Question:
A message containing letters from A-Z is being encoded to numbers using the following
mapping:
'A' -> 1
'B' -> 2
...
'Z' -> 26
Given an encoded message containing digits, determine...
分类:
其他好文 时间:
2016-08-10 21:12:59
阅读次数:
143
Ajax在我们的网页中无处不在,我们平常开发中也都会使用Ajax,可是我们对它的认识又有多少啦,又有多少人知道它的全名,又有多少人会把它当成阿贾克斯Ajax的由来2005年,Jesse James Garrett 介绍了一种技术,用他的话说就叫Ajax,是对Asynchronous JavaScript+XML的简写,这一技术能够向服务器请求额外的数据而无需卸载页面,会带来更好的用户体验。这一技术...
分类:
Web程序 时间:
2016-08-10 21:12:48
阅读次数:
189