Piggy-Bank
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 7626
Accepted: 3665
Description
Before ACM can do anything, a budget must be prepared and the ne...
分类:
其他好文 时间:
2014-06-16 11:48:41
阅读次数:
271
题目
You are given an n x n 2D matrix representing an image.
Rotate the image by 90 degrees (clockwise).
Follow up:
Could you do this in-place?
方法
矩阵坐标的转换,循环替换。
public voi...
分类:
其他好文 时间:
2014-06-16 11:28:03
阅读次数:
199
dispatch_queue_t queue =
dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0);
dispatch_async(queue, ^{ //do it dispatch_async(di...
分类:
移动开发 时间:
2014-06-16 06:40:44
阅读次数:
530
You are given an n x n 2D matrix representing an image.
Rotate the image by 90 degrees (clockwise).
Follow up:
Could you do this in-place?
思路:第一种思路是一层一层的进行旋转,比较直观,但是花费的时间要久一些;第二种思路则比较取巧,首先沿着...
分类:
其他好文 时间:
2014-06-15 08:46:26
阅读次数:
170
continuecontinue 只能用于while循环、do/while循环、for循环以及for/in循环中,其他地方都会引起错误。1 for(var i=0;i<5;i++){2 if(i == 3) continue;3 console.log(i); //0,1,2,...
分类:
编程语言 时间:
2014-06-15 06:43:13
阅读次数:
239
jQuery.ajax({ type:"POST", url:"${ctx}/offer.do", data:{ 'method':'isNameExist', 'type':'area', 'id':id==""?null:id, 'name':encodeURIComponent(offerAr...
分类:
Web程序 时间:
2014-06-14 20:58:07
阅读次数:
333
It seems like the year of 2013 came only yesterday. Do you know a curious fact? The year of 2013 is the first year after the old 1987 with only distin...
分类:
其他好文 时间:
2014-06-14 19:10:14
阅读次数:
232
import UIKitclass ViewController: UIViewController { var greenView:UIView! override func viewDidLoad() { super.viewDidLoad() // Do any ad...
分类:
移动开发 时间:
2014-06-14 18:10:54
阅读次数:
358
刚刚接触,还需在项目中,逐步深入的理解,站在巨人的肩膀上学习,成长还是比较快的;知识的学习都是通过对比,在gxpt中很多内容都是对比NET的知识学习,理解的也深刻、效果不错;抽象的能力的培养尤其重要,看着师哥们抽象的底层,处处体现着抽象带来的软件复用的高效,老师经常也在谈,抽象不要只说,更要我们要不断的运用到自己的实际项目中,TO DO,TO DO!!!...
分类:
编程语言 时间:
2014-06-14 07:33:12
阅读次数:
362
代码:@ResponseBody @RequestMapping("/login.do")
public Json login(SysUserPM sysUserPM, HttpSession session) { Json j = new
Json(); S...
分类:
编程语言 时间:
2014-06-13 20:06:08
阅读次数:
775