码迷,mamicode.com
首页 >  
搜索关键字:do it    ( 12356个结果
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: Reorder List [143]
【题目】 Given a singly linked list L: 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 nodes' values. For example, Given {1,2,3,4}, reorder it to {1,4,2,3}. 【题意】 给定一个链表L: L0→L1→…→Ln-1→Ln,对他重新排序成L...
分类:其他好文   时间:2014-06-30 10:11:14    阅读次数:158
LeetCode: Binary Tree Postorder Traversal [145]
【题目】 Given a binary tree, return the postorder traversal of its nodes' values. For example: Given binary tree {1,#,2,3}, 1 2 / 3 return [3,2,1]. Note: Recursive solution is trivial, could you do it iteratively? 【题意】 非递归实现后续遍...
分类:其他好文   时间:2014-06-30 10:10:10    阅读次数:177
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
微博估计要火一阵的SleepSort之Shell及C实现
今日在微博看到如此神奇的代码,居然还有新的sort算法,对于我这种渣渣必须研究一下,代码如下: #!/bin.bash function f() { sleep "$1" //sleep 这么多ms echo "$1" } while [ -n "$1" ] //第一个参数不为空 do f "$1" & //后台运行,相当于fork一个进程去执行f, 父进程同...
分类:其他好文   时间:2014-06-30 08:41:57    阅读次数:256
LeetCode: Binary Tree Preorder Traversal [144]
【题目】 Given a binary tree, return the preorder traversal of its nodes' values. For example: Given binary tree {1,#,2,3}, 1 2 / 3 return [1,2,3]. Note: Recursive solution is trivial, could you do it iteratively? 【题意】 非递归返回先序遍历...
分类:其他好文   时间:2014-06-30 06:21:18    阅读次数:334
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
迷上了代码!