spark-little-tips
工作中学习使用了一下Spark做数据分析,主要是用spark的python接口,首先是pyspark.SparkContext(appName=xxx),这是初始化一个Spark应用实例或者说会话,不能重复, 返回的实例句柄就可以调用textFile(path)读取文本文件,这…
工作中学习使用了一下Spark做数据分析,主要是用spark的python接口,首先是pyspark.SparkContext(appName=xxx),这是初始化一个Spark应用实例或者说会话,不能重复, 返回的实例句柄就可以调用textFile(path)读取文本文件,这…
抽象类与接口 抽象类内可以包含非抽象函数,即可实现函数 抽象类内必须包含至少一个抽象方法,抽象类和接口均不能实例化 抽象类可以设置访问级别,接口默认都是public 类可以实现多个接口但不能继承多个抽象类 类必须实现抽象类和接口里的抽象方法,不一定要实现抽象类的非抽象方法 接口…
Given a sorted integer array without duplicates, return the summary of its ranges.
Given an array of n positive integers and a positive integer s, find the minimal length of a subarray of which the sum ≥ s. If there isn't…
A binary watch has 4 LEDs on the top which represent the hours (0-11), and the 6 LEDs on the bottom represent the minutes (0-59).