From 1cd505fffaad55028763e949285fd5675ee9ec1c Mon Sep 17 00:00:00 2001 From: algorithmzuo Date: Thu, 1 Apr 2021 19:29:34 +0800 Subject: [PATCH] modify code --- .../Code04_MaxSumLengthNoMore.java} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename src/{class47/Code03_MaxSumLengthNoMore.java => class46/Code04_MaxSumLengthNoMore.java} (97%) diff --git a/src/class47/Code03_MaxSumLengthNoMore.java b/src/class46/Code04_MaxSumLengthNoMore.java similarity index 97% rename from src/class47/Code03_MaxSumLengthNoMore.java rename to src/class46/Code04_MaxSumLengthNoMore.java index 8e4878a..be50615 100644 --- a/src/class47/Code03_MaxSumLengthNoMore.java +++ b/src/class46/Code04_MaxSumLengthNoMore.java @@ -1,10 +1,10 @@ -package class47; +package class46; import java.util.LinkedList; // 给定一个数组arr,和一个正数M // 返回在子数组长度不大于M的情况下,最大的子数组累加和 -public class Code03_MaxSumLengthNoMore { +public class Code04_MaxSumLengthNoMore { // O(N^2)的解法,暴力解,用作对数器 public static int test(int[] arr, int M) {