上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 29 下一页
摘要: 一次ACGiven a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?/** * Definition for singly-linked lis... 阅读全文
posted @ 2013-12-11 11:51 海滨银枪小霸王 阅读(125) 评论(0) 推荐(0)
摘要: 一次AC关键是读懂题意记数方法基本字符IVXLCDM相应的阿拉伯数字表示为1510501005001000相同的数字连写,所表示的数等于这些数字相加得到的数,如:Ⅲ = 3;小的数字在大的数字的右边,所表示的数等于这些数字相加得到的数, 如:Ⅷ = 8;Ⅻ = 12;小的数字,(限于Ⅰ、X 和C)在... 阅读全文
posted @ 2013-12-11 02:47 海滨银枪小霸王 阅读(143) 评论(0) 推荐(0)
摘要: Given a linked list, swap every two adjacent nodes and return its head.For example,Given1->2->3->4, you should return the list as2->1->4->3.Your algor... 阅读全文
posted @ 2013-12-11 02:01 海滨银枪小霸王 阅读(113) 评论(0) 推荐(0)
摘要: Given a stringsconsists of upper/lower-case alphabets and empty space characters' ', return the length of last word in the string.If the last word doe... 阅读全文
posted @ 2013-12-10 23:56 海滨银枪小霸王 阅读(104) 评论(0) 推荐(0)
摘要: 受猛人鼓舞, 开始leetcode之路.时间暂定三月.向者耕耘于杭电,北大acm .奈何题量浩繁,种类各异,良莠不齐.加之无人指点,好似永无止境,致锐气尽脱,心灰意懒. leetcode题量适中,还得到高人源码与博文,喜不自胜.特记之leetcode:http://oj.leetcode.... 阅读全文
posted @ 2013-12-10 18:21 海滨银枪小霸王 阅读(99) 评论(0) 推荐(0)
摘要: 数据备份文档描述:定时备份数据到新硬盘中,这个是在同一个系统中.如果是通过网络备份到另一台服务器上,则可以用简单软件即可细节:crontab+python/shell功能:~定时备份指定文件夹中的文件到新硬盘中,时间可达到1分钟~当文件夹中有修改,增加,减少时,新硬盘都会跟着一起更新(每隔一定时间)... 阅读全文
posted @ 2013-12-10 08:45 海滨银枪小霸王 阅读(132) 评论(0) 推荐(0)
摘要: Fibonacci again and againTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3729 Accepted Subm... 阅读全文
posted @ 2013-12-06 06:33 海滨银枪小霸王 阅读(262) 评论(0) 推荐(0)
摘要: 说明:1. unsigned long long 可表示2^632. 输出printf不好表示就用cout#includeusing namespace std;int main(){ int n; while(cin>>n) { long long result=(... 阅读全文
posted @ 2013-11-29 15:33 海滨银枪小霸王 阅读(127) 评论(0) 推荐(0)
摘要: 今天算是小有成果,虽小,但很是欣慰之前配置一直失败,郁闷良久原因是验证用户名时,选择错误 现记录如下:1.2. 添加选网络此时只需要输入ip即可3.这个必须事前知晓4.选择下面的:现在设定认证细节,再输入你的口令如果不行,那在下面选另外一个打印机 阅读全文
posted @ 2013-11-25 19:18 海滨银枪小霸王 阅读(134) 评论(0) 推荐(0)
摘要: 今看一趣题,曰:现有2000吨煤,自A往B运煤,AB相去1000里,火车每里烧煤1吨。问:最终可运煤几何?答曰:先运1000至1000/3处,放下1000/3吨煤,返回再运1000到1000/3处装上,此时1000吨,再开往B地,最终可得1000/3此方法较简单现改之,现有3000吨,结果又几何?答... 阅读全文
posted @ 2013-11-25 01:47 海滨银枪小霸王 阅读(119) 评论(0) 推荐(0)
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 29 下一页