Brief: the-ith-element,given a array A with n element , return the i-th element of A. A(n,i)this problem can be solved using quick-sort idear, every t...
分类:
其他好文 时间:
2014-10-02 18:28:43
阅读次数:
210
先说下题目的意思: 在一个二维坐标系中有N个点,某人要来个走遍所有点的旅行,但是他的车每次加油后只能走M个单位距离;所以要在这个N点中选一些建立加油站;问题来了:i^th 点 建加油站的花费是 2^(i-1); 求最小话费 用二进制表示;(其中1号必须建立加油站) 思路:有 1000...
分类:
其他好文 时间:
2014-10-02 14:11:03
阅读次数:
159
原文Office 365 – Exchange Online examples2012 is upon us and here’s wishing you all a very happy and prosperous new year! Last year we’ve taken a quick ...
分类:
其他好文 时间:
2014-10-01 13:51:11
阅读次数:
447
brief : the quick sort can divide into two steps, the first step is partition, the second step is conquer the subset.i) as the first step, array A[lef...
分类:
其他好文 时间:
2014-10-01 01:21:50
阅读次数:
209
Quick Tip: How to Add Syntax Highlighting to Any Projectpublic String showAllArticleForPage() throws Exception{HttpServletRequest request = ServletAct...
分类:
其他好文 时间:
2014-09-30 14:33:29
阅读次数:
185
输出用print加上字符串,就可以向屏幕上输出指定的文字。比如输出'hello, world',用代码实现如下:>>> print 'hello, world'print语句也可以跟上多个字符串,用逗号“,”隔开,就可以连成一串输出:>>> print 'The quick brown fox', ...
分类:
其他好文 时间:
2014-09-27 02:35:59
阅读次数:
245
#include #include #include void quick_sort(int data[], int, int);int partition(int data[], int, int);int main( int argc, char* argv[] ) { int data[8] ...
分类:
其他好文 时间:
2014-09-27 00:09:38
阅读次数:
308
DescriptionLinda is a teacher in ACM kindergarten. She is in charge of n kids. Because the dinning hall is a little bit far away from the classroom, t...
分类:
其他好文 时间:
2014-09-26 20:31:28
阅读次数:
254
quick-cocos2d-x(后文简称 quick)与 cocos2d-x 的关系,用一句话概括:quick 是 cocos2d-x 针对 Lua 的豪华套装威力加强版。那 quick 与 cocos2d-x 相比到底有什么区别,又有什么加强呢?这篇文章就是答案:为什么会有 quickquick ...
分类:
其他好文 时间:
2014-09-25 12:34:18
阅读次数:
369
App::error(function($exception, $code) { switch ($code) { case 403: return Response::view('errors.403', array(), 403); case 404: return Response::view...
分类:
其他好文 时间:
2014-09-24 16:18:57
阅读次数:
210