摘要: 对于函数式编程概念还不理解的情况下可以暂且这么理解:函数式编程是一种编程模式或者思想或者范式,把运算过程定义为函数。其次就是可以把函数当成变量来用,可以作为输入和输出(返回)值。###Map&Reduce最经典的例子就是map和reduce两个bif。两个bif是用来干嘛的呢,我是这么理解的:map... 阅读全文
posted @ 2015-03-07 20:24 sonic0214 阅读(171) 评论(0) 推荐(0)
摘要: 题目描述: There are N children standing in a line. Each child is assigned a rating value. You are giving candies to these children subjected to the ... 阅读全文
posted @ 2015-03-07 16:25 sonic0214 阅读(107) 评论(0) 推荐(0)