码迷,mamicode.com
首页 >  
搜索关键字:do it    ( 12356个结果
Cracking the Coding Interview Q1.6
Given an image represented by an NxN matrix, where each pixel in the image is 4 bytes, write a method to rotate the image by 90 degrees. Can you do th...
分类:其他好文   时间:2014-07-08 22:06:25    阅读次数:222
2014 Super Training #6 F Search in the Wiki --集合取交+暴力
原题: ZOJ 3674http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3674题意不难理解,很容易想到用暴力,但是无从下手,不知道怎么实现。后来看了网上的代码,直接用vector和map暴力,用到了set_intersect...
分类:其他好文   时间:2014-07-08 22:04:57    阅读次数:239
jquery trigger函数和triggerHandler函数的对比
一句话的区别就是:trigger will bubbling jQuery events (not default DOM events) and triggerHnadler will not do that!...
分类:Web程序   时间:2014-07-08 19:41:55    阅读次数:158
【ruby项目,语言提交检查(一)】如何快速学习ruby ?
如何快速学习ruby ? 学习语言最快的思路。 变量,常量,变量类型,操作符, 逻辑语句如 if, else, switch, for, foreach, do while, break, 等等。要学的语言与这些命令相似的命令是什么?了解使用方法即可。 之后,如果是面向对象,就要了解一下关于对象的操作了。 有没有函数库,一般语言都有的。输出命令函数,操作数组,操作字符串,对象属性 操作...
分类:其他好文   时间:2014-07-08 14:35:27    阅读次数:143
switch case ,while, do while,enum
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace C_编辑基础 { //枚举的意义就是限定变量的取值范围 enum gender{Male,Female,Unkown}; //声明一个类型,它是枚举类型(定义一个枚举),这个枚举有三个值。...
分类:其他好文   时间:2014-07-08 13:38:36    阅读次数:191
LeetCode——String to Integer (atoi)
Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are the possible input ca...
分类:其他好文   时间:2014-07-08 12:52:05    阅读次数:200
java提高篇(三十)-----Iterator
迭代对于我们搞Java的来说绝对不陌生。我们常常使用JDK提供的迭代接口进行Java集合的迭代。Iterator iterator = list.iterator(); while(iterator.hasNext()){ String string = iterator.next(); //do something...
分类:编程语言   时间:2014-07-08 12:50:53    阅读次数:290
我对python线程池的理解
#!/usr/bin/envpythonfromQueueimportQueuefromthreadingimportThreadimportrandomimporttimedefperson(i,q):whileTrue:#这个人一直处与可以接活干的状态q.get()print"Thread",i,"do_job"time.sleep(random.randint(1,5))#每个人干活的时间不一样,自然就会导致每个人分配的件..
分类:编程语言   时间:2014-07-08 09:48:06    阅读次数:222
2014 Super Training #9 F A Simple Tree Problem --DFS+线段树
原题: ZOJ 3686http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3686这题本来是一个比较水的线段树,结果一个mark坑了我好几个小时。。哎。太弱。先DFS这棵树,树形结构转换为线性结构,每个节点有一个第一次遍历的时间...
分类:其他好文   时间:2014-07-08 00:46:56    阅读次数:295
2014 Super Training #6 G Trim the Nails --状态压缩+BFS
原题: ZOJ 3675http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3675由m#include #include #include #include #include using namespace std;#defin...
分类:其他好文   时间:2014-07-08 00:31:26    阅读次数:272
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!