Java里的List(集合)、Array(数组)、Map(字典) List<String> L= new ArrayList<>();(List是接口,ArrayList是接口的实现类) int[] Y= new int[2];(Java命名类型,int[]是个类型,Y是变量名) Map<String,Object> F = new HashMap<>();
Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For example, given the array [−2,1,−3,4,−1,2,1,−5,4], the contiguous subarray [4,−1,2,1] has