More Divisors
Time Limit: 2 Seconds Memory Limit: 65536 KB
Everybody knows that we use decimal notation, i.e. the base of our notation is 10. Historians say that it is so because men ...
分类:
其他好文 时间:
2014-09-16 22:10:21
阅读次数:
303
Problem Description
In our daily life we often use 233 to express our feelings. Actually, we may say 2333, 23333, or 233333 ... in the same meaning. And here is the question: Suppose we have a matrix...
分类:
其他好文 时间:
2014-09-14 23:42:47
阅读次数:
342
<script>
????function?Person(name?,?age){
????????this.name?=?name?;
????????this.age?=?age?;
????????this.say?=?function?(){
????????????retur...
分类:
Web程序 时间:
2014-09-14 12:56:47
阅读次数:
144
在自己还未明白自己大学应该怎么过,大学时光与我就要say goodbye了。之前一直想将自己将自己的大学三年(今年大四)总结一下,今天终于抽出时间来完成它了。今天回首自己大学三年,感觉自己算是浑浑噩噩的过来了。脑海里留下的仅仅只是一些零星的回忆,能记录下来的就更少了。但我想这也是我的人生的一段经历吧...
分类:
其他好文 时间:
2014-09-13 21:17:15
阅读次数:
212
仅提供个人的一种解题思路,未必是最优,仅供各位参考!
/**
*
*
* ClassName SolutionBestTimeToBuyAndSellStock
*
*
* Description Say you have an array for which the ith element is the price of a given stock on day i....
分类:
其他好文 时间:
2014-09-11 22:28:42
阅读次数:
235
1、call 跟 apply的主要区别:call传入参数是一个一个传入,而 apply 使用的是数组传入call(obj,arg1,arg2,arg3,arg4)apply(obj,[arg1,arg2,arg3,arg4]);2、使用场景: 2.1 方法调用: var say= fun...
分类:
移动开发 时间:
2014-09-11 20:53:02
阅读次数:
237
Best Time to Buy and Sell Stock
Say you have an array for which the ith element is the price of a given stock on day i.
If you were only permitted to complete at most one transaction (ie,...
分类:
其他好文 时间:
2014-09-08 09:39:06
阅读次数:
312
Count and Say
Total Accepted: 14508 Total
Submissions: 53213My Submissions
The count-and-say sequence is the sequence of integers beginning as follows:
1, 11, 21, 1211, 111221, ...
1 is...
分类:
其他好文 时间:
2014-09-07 19:49:55
阅读次数:
199
Say you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the maximum profit. You may complete a...
分类:
其他好文 时间:
2014-09-07 14:41:25
阅读次数:
240
Say you have an array for which theithelement is the price of a given stock on dayi.If you were only permitted to complete at most one transaction (ie...
分类:
其他好文 时间:
2014-09-07 13:24:55
阅读次数:
229