上一页 1 ··· 4 5 6 7 8 9 10 11 下一页
题目来源https://leetcode.com/problems/unique-paths/A robot is located at the top-left corner of amxngrid (marked 'Start' in the diagram below).The robot c... Read More
posted @ 2016-01-01 17:18 loadofleaf Views(286) Comments(0) Diggs(0) Edit
题目来源https://leetcode.com/problems/rotate-list/Given a list, rotate the list to the right bykplaces, wherekis non-negative.For example:Given1->2->3->4-... Read More
posted @ 2016-01-01 17:00 loadofleaf Views(253) Comments(0) Diggs(0) Edit
maxmax(key=None)Find the maximum item in this RDD.Parameters:key– A function used to generate key for comparing例子:meanmean()Compute the mean of this R... Read More
posted @ 2015-12-30 21:38 loadofleaf Views(193) Comments(0) Diggs(0) Edit
首先在$SPARK_HOME主目录下建立一个test文件夹,里面放一些文件(注意文件全部内容都可被hadoop用户访问,否则运行会出现permission denied的错误)打开pyspark: ./bin/pyspark读入文件整行切割(flatMap, s.split())映射数量(map, ... Read More
posted @ 2015-12-30 15:14 loadofleaf Views(126) Comments(0) Diggs(0) Edit
题目来源https://leetcode.com/problems/permutations-ii/Given a collection of numbers that might contain duplicates, return all possible unique permutations... Read More
posted @ 2015-12-30 11:33 loadofleaf Views(274) Comments(0) Diggs(0) Edit
题目来源https://leetcode.com/problems/permutation-sequence/The set[1,2,3,…,n]contains a total ofn! unique permutations.By listing and labeling all of the ... Read More
posted @ 2015-12-30 11:29 loadofleaf Views(488) Comments(0) Diggs(0) Edit
题目来源https://leetcode.com/problems/permutations/Given a collection ofdistinctnumbers, return all possible permutations.For example,[1,2,3]have the foll... Read More
posted @ 2015-12-30 10:30 loadofleaf Views(308) Comments(0) Diggs(0) Edit
题目来源https://leetcode.com/problems/insert-interval/Given a set ofnon-overlappingintervals, insert a new interval into the intervals (merge if necessary... Read More
posted @ 2015-12-28 22:39 loadofleaf Views(245) Comments(0) Diggs(0) Edit
题目来源https://leetcode.com/problems/merge-intervals/Given a collection of intervals, merge all overlapping intervals.For example,Given[1,3],[2,6],[8,10]... Read More
posted @ 2015-12-28 22:16 loadofleaf Views(382) Comments(0) Diggs(0) Edit
题目来源https://leetcode.com/problems/jump-game-ii/Given an array of non-negative integers, you are initially positioned at the first index of the array.E... Read More
posted @ 2015-12-28 22:00 loadofleaf Views(206) Comments(0) Diggs(0) Edit
上一页 1 ··· 4 5 6 7 8 9 10 11 下一页