[读后感]从Code Review 谈如何做技术...
分类:
其他好文 时间:
2014-11-16 07:08:56
阅读次数:
313
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1012解题思路:对阶乘递归求和反思:前面3个的输出格式需要注意,可以自己单独打印出来,也可以在for循环里面更改输出小数的位数,另外读题还是要仔细,输出的有9位小数。#includedouble sum(...
分类:
其他好文 时间:
2014-11-16 07:09:10
阅读次数:
188
Given a collection of integers that might contain duplicates, S, return all possible subsets.Note:Elements in a subset must be in non-descending order...
分类:
其他好文 时间:
2014-11-16 07:07:37
阅读次数:
141
Reverse a linked list from position m to n. Do it in-place and in one-pass. For example:Given 1->2->3->4->5->NULL, m = 2 and n = 4,return 1->4->3->2->...
分类:
其他好文 时间:
2014-11-16 07:06:37
阅读次数:
173
Given an absolute path for a file (Unix-style), simplify it.For example,path="/home/", =>"/home"path="/a/./b/../../c/", =>"/c"1,java里string的函数split可以用...
分类:
其他好文 时间:
2014-11-16 07:05:37
阅读次数:
152
The gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integer n representing the total numb...
分类:
其他好文 时间:
2014-11-16 07:05:48
阅读次数:
159
1. inputprint "What's your first name?"first_name = gets.chomp chomp will delete "\n" from the stringhttp://www.ruby-doc.org/docs/Tutorial/part_02/us....
分类:
其他好文 时间:
2014-11-16 07:06:55
阅读次数:
211
描述小c才开始学习c语言,让他最烦恼的就是对字符数组的操作。小C的好朋友小E为了激励他,出了这样一个题目:字符串的移动输出。并给他许诺说,如果他能够在有限的时间内编写出这道题目的代码,并顺利通过就请他去吃大餐,于是小C便认真的敲这个题目的代码去了,聪明的你也来练练手吧。输入第一行包括一个整数t,代表...
分类:
其他好文 时间:
2014-11-16 07:05:55
阅读次数:
212
描述你的弟弟刚做完了“100以内数的加减法”这部分的作业,请你帮他检查一下。每道题目(包括弟弟的答案)的格式为a+b=c或者a-b=c,其中a和b是作业中给出的,均为不超过100的非负整数;c是弟弟算出的答案,可能是不超过200的非负整数,也可能是单个字符"?",表示他不会算。输入输入文件包含不超过...
分类:
其他好文 时间:
2014-11-16 07:04:55
阅读次数:
244
Suppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e.,0 1 2 4 5 6 7might become4 5 6 7 0 1 2).You are given a target value t...
分类:
其他好文 时间:
2014-11-16 07:06:34
阅读次数:
174
吉哥系列故事——临时工计划Time Limit: 3000/1000 MS (Java/Others)Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 3108Accepted Submission(s): 1220Probl...
分类:
其他好文 时间:
2014-11-16 07:06:23
阅读次数:
276
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.Fo...
分类:
其他好文 时间:
2014-11-16 07:06:02
阅读次数:
151
做Java开发的时候,常常会出现一些乱码,或者无法正确识别或读取的文件,原因是编码方式的不一致。native2ascii是sun java sdk提供的一个工具。用来将别的文本类文件(比如*.txt,*.ini,*.properties,*.java等等)编码转为Unicode编码。一.获取nati...
分类:
其他好文 时间:
2014-11-16 07:03:41
阅读次数:
258
以一颗平常的心,来面对无常的人生。人生就像骑自行车,想保持平衡就得往前走。不要轻易述说生活的狼狈,学会面对杂乱无序的现实。生命需要保持一种激情,激情能让别人感到你是不可阻挡的时候,就会为你的成功让路!一个人内心不可屈服的气质是可以感动人的,并能够改变很多东西。所有的诺言都是苍白空洞的,承诺的时候纵然...
分类:
其他好文 时间:
2014-11-16 07:04:09
阅读次数:
214
Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.For example:Given the below binary tree andsum =...
分类:
其他好文 时间:
2014-11-16 07:04:58
阅读次数:
216
版本库的创建1. 三部曲:git init 、 git add 、 git commitMkdir myworkspaceCd myworkspaceGit initEcho ”hello.” > welcome.txtGit add welcome.txtGit commit –m “initia...
分类:
其他好文 时间:
2014-11-16 07:04:26
阅读次数:
141
中国科学技术大学软件 朱秀秀 原创作品转载请注明出处 自暑假以来,就认识到这本书几乎成了软件行业不可或缺的一碗鸡汤,不过在我刚一看到“神话”两个字,两眼顿时放光,觉得闲暇之余还可以看看神话之类的小说,煞是惬意,可是暑假档期排得实在是不能再满了,于是乎,决定开学之后再看吧。暑假的课程紧锣密鼓的进行着....
分类:
其他好文 时间:
2014-11-16 07:03:05
阅读次数:
195