QUESTIONGiven an integer n, return the number of trailing zeroes in n!.Note: Your solution should be in logarithmic time complexity.FIRST TRYclass Sol...
分类:
其他好文 时间:
2015-01-03 19:49:18
阅读次数:
178
Best Time to Buy and Sell Stock IIQuestion SolutionSay you have an array for which the ith element is the price of a given stock on day i.Design an al...
分类:
其他好文 时间:
2015-01-03 19:45:09
阅读次数:
140
Best Time to Buy and Sell Stock IIIQuestion SolutionSay you have an array for which the ith element is the price of a given stock on day i.Design an a...
分类:
其他好文 时间:
2015-01-03 19:43:30
阅读次数:
171
Best Time to Buy and Sell StockSay you have an array for which theithelement is the price of a given stock on dayi.If you were only permitted to compl...
分类:
其他好文 时间:
2015-01-03 19:43:30
阅读次数:
205
通过_config.yml中的date_format参数设置对我目前使用的2.0版本的octopress的首页中的文章日期的显示不起作用,需要用其它方式进行设置。设置方式为,修改source/_includes/post/date.html文件,将其中的{{ page.date_time_html ...
分类:
其他好文 时间:
2015-01-03 18:32:02
阅读次数:
157
Ananagrams
Time Limit:3000MS Memory Limit:0KB 64bit IO Format:%lld
& %llu
Submit Status
Description
Ananagrams
Most crossword puzzle fans are used to...
分类:
编程语言 时间:
2015-01-03 17:27:43
阅读次数:
231
Starship Troopers
Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 11797 Accepted Submission(s): 3256
Problem Description
You, the l...
分类:
其他好文 时间:
2015-01-03 17:25:25
阅读次数:
146
今天有同学找到我说,能不能写一个简单的python md5加密模块,作为服务器端程序的响应函数。信息安全之类的问题了。md5采用单向加密机制。
直接上代码:
(k1, k2 是系统自动生成的随机整数,user_name是用户名)
def encrypt (a="user_name" , k1=1 , k2=1):
#get system time
b ...
分类:
编程语言 时间:
2015-01-03 17:24:32
阅读次数:
451
非常可乐
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 5370 Accepted Submission(s): 2191
Problem Description
大家一定觉的运动以后喝可乐是一件很惬意的事...
分类:
其他好文 时间:
2015-01-03 14:41:52
阅读次数:
208
To the Max --------------------------------------------------------------------------------Time Limit: 1 Second Memory Limit: 32768 KB --------------....
分类:
其他好文 时间:
2015-01-03 14:29:45
阅读次数:
157