摘要: MapReduce工作机制——Word Count实例(一) MapReduce的思想是分布式计算,也就是分而治之,并行计算提高速度。 编程思想 首先,要将数据抽象为键值对的形式,map函数输入键值对,处理后,产生新的键值对作为中间结果输出。接着,MapReduce框架自动将中间结果按键做聚合处理, 阅读全文
posted @ 2017-07-14 17:56 6002 阅读(490) 评论(0) 推荐(0) 编辑
摘要: Description: Given an index k , return the k th row of the Pascal's triangle. For example, given k = 3, Return . my Solution: java public class Soluti 阅读全文
posted @ 2017-07-14 15:27 6002 阅读(111) 评论(0) 推荐(0) 编辑
摘要: `Array` Description: Given numRows , generate the first numRows of Pascal's triangle. For example, given numRows = 5, Return 这题依旧没写出来,看到要返回的是 直接就蒙了。感想 阅读全文
posted @ 2017-07-14 13:31 6002 阅读(99) 评论(0) 推荐(0) 编辑
摘要: `Array Two Pointers` Description: Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array. Note: You may assume th 阅读全文
posted @ 2017-07-14 09:53 6002 阅读(99) 评论(0) 推荐(0) 编辑