码迷,mamicode.com
首页 >  
搜索关键字:mapreduce_shuffle do    ( 12392个结果
Problem Reorder List
Problem Description:Given a singly linked listL:L0→L1→…→Ln-1→Ln,reorder it to:L0→Ln→L1→Ln-1→L2→Ln-2→…You must do this in-place without altering the no...
分类:其他好文   时间:2014-07-07 16:41:56    阅读次数:141
验证手机号码
手机号码验证- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view. //会输出1或者0.1为YES,0为NO NSLog(@"------...
分类:移动开发   时间:2014-07-07 16:31:10    阅读次数:226
Leetcode Rotate Image
You are given annxn2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?矩阵的旋转如1 2 34 5 67 8...
分类:其他好文   时间:2014-07-07 15:13:49    阅读次数:181
Apache Spark源码走读之10 -- 在YARN上运行SparkPi
y欢迎转载,转载请注明出处,徽沪一郎。概要“spark已经比较头痛了,还要将其运行在yarn上,yarn是什么,我一点概念都没有哎,再怎么办啊。不要跟我讲什么原理了,能不能直接告诉我怎么将spark在yarn上面跑起来,I'm a dummy, just told me how to do it.”...
分类:其他好文   时间:2014-07-07 14:23:52    阅读次数:278
手机验证码
一个软件在用户注册的时候,往往是需要验证码的。也就是要先把验证码发在手机上,然后,用户在软件中输入,若验证码正确,注册用户才可登陆。- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loa...
分类:移动开发   时间:2014-07-07 13:18:28    阅读次数:258
Operation System - Peterson's Solution算法 解决多线程冲突
Person's solution 是用来一种基于软件的解决关键区域问题的算法(critical-section).它并不是完美的,有可能不对地工作。并且是限制解决两个进程同步的问题。可是它非常easy,非常原始,学习起来也是非常轻松的。代码例如以下:do { flag[i] = true;...
分类:编程语言   时间:2014-07-03 11:49:05    阅读次数:280
zoj 1655 单源最短路 改为比例+最长路
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=655 没有理解清题意就硬套模板,所以WA了好几次, 解析看我的另一篇http://blog.csdn.net/u011026968/article/details/35579035 贴代码 #include #include #include ...
分类:其他好文   时间:2014-06-30 09:53:40    阅读次数:276
Set Matrix Zeroes
题目 Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place. Follow up: Did you use extra space? A straight forward solution using O(mn) space is probab...
分类:其他好文   时间:2014-06-30 06:17:09    阅读次数:245
Meet Apache Wicket
刚开始接触Wicket,所以很多内容都是直译,把原文贴上,望大家指正 Meet Apache Wicket     By JonathanLocke, original author of Wicket     乔纳森·洛克,Wicket的原作者 Why Wicket?       If you arelooking to do web application progra...
分类:其他好文   时间:2014-06-29 22:57:45    阅读次数:247
springmvc照片上传功能
刚从ruby转做java,分个活做照片上传,开始感觉很崩溃,以为本人菜鸟一个,一见到流什么的就感觉很牛逼的东西我怎么会啊,自学加百度,做出来了,两种方法完成,关于js预览就不上传了,留作以后备用,也能帮助下和我一样的菜鸟jsp页面<formaction="uploadPhoto.do"method="p..
分类:编程语言   时间:2014-06-29 21:02:48    阅读次数:427
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!