摘要:
写了一个月spark,用了无数RDD操作,总结一下~ RDD Transform map(func) : 数据集中的每个元素经过用户自定义的函数转换形成一个新的RDD val rdd = sc.parallelize(1 to 5) val result = rdd.map(x => x to 3) 阅读全文
摘要:
闲来无事,看了下牛客多校的题目,嘴炮了几题,顺手用txt写了这题。先附上题面 Problem Description Chiaki has an array of n positive integers. You are told some facts about the array: for ev 阅读全文