上一页 1 ··· 6 7 8 9 10 11 12 下一页

2015年12月12日

摘要: Delete Node in a Linked ListTotal Accepted:48121Total Submissions:109297Difficulty:EasyWrite a function to delete a node (except the tail) in a singly... 阅读全文
posted @ 2015-12-12 15:35 Oliver-cs 阅读(194) 评论(0) 推荐(0) 编辑

2015年12月11日

摘要: 感谢:http://www.cnblogs.com/changchengxiao/p/3413294.htmlSingle NumberTotal Accepted:103007Total Submissions:217483Difficulty:MediumGiven an array of in... 阅读全文
posted @ 2015-12-11 16:55 Oliver-cs 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 快速排序,时间复杂度O(N*logN),要能熟练掌握!以下主要参考http://blog.csdn.net/morewindows/article/details/6684558, 感谢原博主!该方法的基本思想是:1.先从数列中取出一个数作为基准数。2.分区过程,将比这个数大的数全放到它的右边,小于... 阅读全文
posted @ 2015-12-11 16:30 Oliver-cs 阅读(208) 评论(0) 推荐(0) 编辑
摘要: Add DigitsTotal Accepted:49702Total Submissions:104483Difficulty:EasyGiven a non-negative integernum, repeatedly add all its digits until the result h... 阅读全文
posted @ 2015-12-11 08:50 Oliver-cs 阅读(209) 评论(0) 推荐(0) 编辑

2015年12月9日

摘要: Nim GameTotal Accepted:25342Total Submissions:50672Difficulty:EasyYou are playing the following Nim Game with your friend: There is a heap of stones o... 阅读全文
posted @ 2015-12-09 22:20 Oliver-cs 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 如果一个函数是以return 结束的,那么在调用时,并不会在控制台上输出返回值,必须使用显式的print才行。对于参数为数组的函数(如int[][] m),当不知道其数组长度时,可以使用 m.length来获得,如下1 public static int sumMajorDiagonal(int[]... 阅读全文
posted @ 2015-12-09 21:29 Oliver-cs 阅读(156) 评论(0) 推荐(0) 编辑

2015年11月26日

摘要: 1.第一次打开Studio 2.点击创建新项目然后填上相关信息,注意在Company Domain(公司域名)地方的填写,不同于Eclipse对应实际电脑中文件夹,而是在你所选择的Project文件夹下创建和Application name同名的文件夹,如我的电脑上是:C:\AndroidS... 阅读全文
posted @ 2015-11-26 21:08 Oliver-cs 阅读(718) 评论(0) 推荐(0) 编辑
摘要: ======由于很喜欢Android编程,所以买来了安卓权威指南来学习。为了应用费曼技巧——把知识输出出去以检验和巩固,在此写下学习笔记=======1. 配置编程环境Java的JDK(Java developer Kit)http://www.oracle.com/technetwork/java... 阅读全文
posted @ 2015-11-26 20:18 Oliver-cs 阅读(166) 评论(0) 推荐(0) 编辑

2015年11月21日

摘要: 一个好用的代码分享网站http://paste.ubuntu.com/ 阅读全文
posted @ 2015-11-21 20:38 Oliver-cs 阅读(798) 评论(0) 推荐(0) 编辑

2015年11月9日

摘要: 1 typedef char ListData; 2 //表示以后可以用ListData来代替char类型 3 4 typedef struct node{ //此处node,只在结构体中出现和使用 5 ListData data; 6 struct node *li... 阅读全文
posted @ 2015-11-09 00:58 Oliver-cs 阅读(231) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 下一页

导航