parent
64d7b5cd1f
commit
fdcdf5d7c3
@ -1,4 +1,4 @@
|
||||
package 第01期_mca_01_about_sort;
|
||||
package 第01期.mca_01_about_sort;
|
||||
|
||||
public class Code01_MinSwapStep {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package 第01期_mca_01_about_sort;
|
||||
package 第01期.mca_01_about_sort;
|
||||
|
||||
import java.util.Comparator;
|
||||
import java.util.PriorityQueue;
|
@ -1,4 +1,4 @@
|
||||
package 第01期_mca_01_about_sort;
|
||||
package 第01期.mca_01_about_sort;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.PriorityQueue;
|
@ -1,4 +1,4 @@
|
||||
package 第01期_mca_01_about_sort;
|
||||
package 第01期.mca_01_about_sort;
|
||||
|
||||
// leetcode 875题
|
||||
public class Code05_KokoEatingBananas {
|
@ -1,4 +1,4 @@
|
||||
package 第01期_mca_02_about_coding;
|
||||
package 第01期.mca_02_about_coding;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.LinkedList;
|
@ -1,4 +1,4 @@
|
||||
package 第01期_mca_02_about_coding;
|
||||
package 第01期.mca_02_about_coding;
|
||||
|
||||
public class Code02_EvenTimesOddTimes {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package 第01期_mca_02_about_coding;
|
||||
package 第01期.mca_02_about_coding;
|
||||
|
||||
public class Code03_PrintMatrixZigZag {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package 第01期_mca_02_about_coding;
|
||||
package 第01期.mca_02_about_coding;
|
||||
|
||||
public class Code04_ZigZagPrintMatrix {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package 第01期_mca_02_about_coding;
|
||||
package 第01期.mca_02_about_coding;
|
||||
|
||||
public class Code05_FindTheCelebrity {
|
||||
// 提交时不要提交这个函数,因为默认系统会给你这个函数
|
@ -1,4 +1,4 @@
|
||||
package 第01期_mca_03_about_experience;
|
||||
package 第01期.mca_03_about_experience;
|
||||
|
||||
// 测试链接 : https://leetcode.com/problems/4-keys-keyboard/
|
||||
public class Code02_4KeysKeyboard {
|
@ -1,4 +1,4 @@
|
||||
package 第01期_mca_03_about_experience;
|
||||
package 第01期.mca_03_about_experience;
|
||||
|
||||
// 测试链接 : https://leetcode.com/problems/best-meeting-point/
|
||||
public class Code03_BestMeetingPoint {
|
@ -1,4 +1,4 @@
|
||||
package 第01期_mca_03_about_experience;
|
||||
package 第01期.mca_03_about_experience;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Comparator;
|
@ -1,4 +1,4 @@
|
||||
package 第01期_mca_03_about_experience;
|
||||
package 第01期.mca_03_about_experience;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package 第01期_mca_03_about_experience;
|
||||
package 第01期.mca_03_about_experience;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package 第01期_mca_03_about_experience;
|
||||
package 第01期.mca_03_about_experience;
|
||||
|
||||
// 测试链接 : https://leetcode.com/problems/maximum-gap/
|
||||
public class Code08_MaxGap {
|
@ -1,4 +1,4 @@
|
||||
package 第01期_mca_04_about_data_structure;
|
||||
package 第01期.mca_04_about_data_structure;
|
||||
|
||||
public class Code02_LongestSumSubArrayLengthInPositiveArray {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package 第01期_mca_04_about_data_structure;
|
||||
package 第01期.mca_04_about_data_structure;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package 第01期_mca_04_about_data_structure;
|
||||
package 第01期.mca_04_about_data_structure;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package 第01期_mca_04_about_data_structure;
|
||||
package 第01期.mca_04_about_data_structure;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package 第01期_mca_04_about_data_structure;
|
||||
package 第01期.mca_04_about_data_structure;
|
||||
|
||||
import java.util.Stack;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package 第01期_mca_05_about_math_greedy;
|
||||
package 第01期.mca_05_about_math_greedy;
|
||||
|
||||
public class Code01_AppleMinBags {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package 第01期_mca_05_about_math_greedy;
|
||||
package 第01期.mca_05_about_math_greedy;
|
||||
|
||||
public class Code02_MSumToN {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package 第01期_mca_05_about_math_greedy;
|
||||
package 第01期.mca_05_about_math_greedy;
|
||||
|
||||
public class Code03_EatGrass {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package 第01期_mca_05_about_math_greedy;
|
||||
package 第01期.mca_05_about_math_greedy;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Comparator;
|
@ -1,4 +1,4 @@
|
||||
package 第01期_mca_05_about_math_greedy;
|
||||
package 第01期.mca_05_about_math_greedy;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.PriorityQueue;
|
@ -1,4 +1,4 @@
|
||||
package 第01期_mca_05_about_math_greedy;
|
||||
package 第01期.mca_05_about_math_greedy;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.HashMap;
|
@ -1,4 +1,4 @@
|
||||
package 第01期_mca_07_about_monotonicity;
|
||||
package 第01期.mca_07_about_monotonicity;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package 第01期_mca_07_about_monotonicity;
|
||||
package 第01期.mca_07_about_monotonicity;
|
||||
|
||||
public class Code02_LongestSumSubArrayLengthInPositiveArray {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package 第01期_mca_07_about_monotonicity;
|
||||
package 第01期.mca_07_about_monotonicity;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package 第01期_mca_07_about_monotonicity;
|
||||
package 第01期.mca_07_about_monotonicity;
|
||||
|
||||
// 本题测试链接 : https://leetcode.com/problems/trapping-rain-water/
|
||||
public class Code04_TrappingRainWater {
|
@ -1,4 +1,4 @@
|
||||
package 第01期_mca_07_about_monotonicity;
|
||||
package 第01期.mca_07_about_monotonicity;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package 第01期_mca_07_about_monotonicity;
|
||||
package 第01期.mca_07_about_monotonicity;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package 第01期_mca_07_about_monotonicity;
|
||||
package 第01期.mca_07_about_monotonicity;
|
||||
|
||||
public class Code07_MinWindowLength {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package 第01期_mca_07_about_monotonicity;
|
||||
package 第01期.mca_07_about_monotonicity;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.ArrayList;
|
@ -1,4 +1,4 @@
|
||||
package 第01期_mca_07_about_monotonicity;
|
||||
package 第01期.mca_07_about_monotonicity;
|
||||
|
||||
import java.util.Stack;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package 第01期_mca_08_dp;
|
||||
package 第01期.mca_08_dp;
|
||||
|
||||
public class Code01_Knapsack {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package 第01期_mca_08_dp;
|
||||
package 第01期.mca_08_dp;
|
||||
|
||||
public class Code02_SumWays {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package 第01期_mca_08_dp;
|
||||
package 第01期.mca_08_dp;
|
||||
|
||||
// 本题测试链接 : https://leetcode.com/problems/longest-substring-without-repeating-characters/
|
||||
public class Code03_LongestSubstringWithoutRepeatingCharacters {
|
@ -1,4 +1,4 @@
|
||||
package 第01期_mca_08_dp;
|
||||
package 第01期.mca_08_dp;
|
||||
|
||||
// 本题测试链接 : https://leetcode.com/problems/maximum-subarray/
|
||||
public class Code04_SubArrayMaxSum {
|
@ -1,4 +1,4 @@
|
||||
package 第01期_mca_08_dp;
|
||||
package 第01期.mca_08_dp;
|
||||
|
||||
public class Code05_CardsInLine {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package 第01期_mca_08_dp;
|
||||
package 第01期.mca_08_dp;
|
||||
|
||||
// 本题测试链接 : https://leetcode.com/problems/burst-balloons/
|
||||
public class Code06_BurstBalloons {
|
@ -1,4 +1,4 @@
|
||||
package 第01期_mca_08_dp;
|
||||
package 第01期.mca_08_dp;
|
||||
|
||||
public class Code08_EditCost {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package 第01期_mca_08_dp;
|
||||
package 第01期.mca_08_dp;
|
||||
|
||||
public class Code10_HorseJump {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package 第01期_test;
|
||||
package 第01期.mca_test;
|
||||
|
||||
// leetcode 121
|
||||
public class Code01_BestTimeToBuyAndSellStock {
|
@ -1,4 +1,4 @@
|
||||
package 第01期_test;
|
||||
package 第01期.mca_test;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package 第01期_test;
|
||||
package 第01期.mca_test;
|
||||
|
||||
import java.util.LinkedList;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package 第01期_test;
|
||||
package 第01期.mca_test;
|
||||
|
||||
//leetcode 122
|
||||
public class Code02_BestTimeToBuyAndSellStockII {
|
@ -1,4 +1,4 @@
|
||||
package 第01期_test;
|
||||
package 第01期.mca_test;
|
||||
|
||||
public class Code02_CoinsWayEveryPaperDifferent {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package 第01期_test;
|
||||
package 第01期.mca_test;
|
||||
|
||||
// 本题测试链接 : https://leetcode.com/problems/container-with-most-water/
|
||||
public class Code02_ContainerWithMostWater {
|
@ -1,4 +1,4 @@
|
||||
package 第01期_test;
|
||||
package 第01期.mca_test;
|
||||
|
||||
public class Code02_ConvertToLetterString {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package 第01期_test;
|
||||
package 第01期.mca_test;
|
||||
|
||||
public class Code02_HorseJump {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package 第01期_test;
|
||||
package 第01期.mca_test;
|
||||
|
||||
import java.util.PriorityQueue;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package 第01期_test;
|
||||
package 第01期.mca_test;
|
||||
|
||||
public class Code02_MinCoinsNoLimit {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package 第01期_test;
|
||||
package 第01期.mca_test;
|
||||
|
||||
// 本题测试链接 : https://leetcode.com/problems/maximum-subarray/
|
||||
public class Code02_SubArrayMaxSum {
|
@ -1,4 +1,4 @@
|
||||
package 第01期_test;
|
||||
package 第01期.mca_test;
|
||||
|
||||
//leetcode 123
|
||||
public class Code03_BestTimeToBuyAndSellStockIII {
|
@ -1,4 +1,4 @@
|
||||
package 第01期_test;
|
||||
package 第01期.mca_test;
|
||||
|
||||
public class Code03_CoinsWayNoLimit {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package 第01期_test;
|
||||
package 第01期.mca_test;
|
||||
|
||||
public class Code03_SplitNumber {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package 第01期_test;
|
||||
package 第01期.mca_test;
|
||||
|
||||
public class Code03_SubMatrixMaxSum {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package 第01期_test;
|
||||
package 第01期.mca_test;
|
||||
|
||||
import java.util.PriorityQueue;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package 第01期_test;
|
||||
package 第01期.mca_test;
|
||||
|
||||
//leetcode 188
|
||||
public class Code04_BestTimeToBuyAndSellStockIV {
|
@ -1,4 +1,4 @@
|
||||
package 第01期_test;
|
||||
package 第01期.mca_test;
|
||||
|
||||
public class Code04_DistinctSubseq {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package 第01期_test;
|
||||
package 第01期.mca_test;
|
||||
|
||||
// 测试链接 : https://leetcode.com/problems/regular-expression-matching/
|
||||
public class Code04_RegularExpressionMatch {
|
@ -1,4 +1,4 @@
|
||||
package 第01期_test;
|
||||
package 第01期.mca_test;
|
||||
|
||||
//leetcode 309
|
||||
public class Code05_BestTimeToBuyAndSellStockWithCooldown {
|
@ -1,4 +1,4 @@
|
||||
package 第01期_test;
|
||||
package 第01期.mca_test;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package 第01期_test;
|
||||
package 第01期.mca_test;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package 第01期_test;
|
||||
package 第01期.mca_test;
|
||||
|
||||
public class Code05_LongestIncreasingPath {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package 第01期_test;
|
||||
package 第01期.mca_test;
|
||||
|
||||
public class Code05_MinWindowLength {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package 第01期_test;
|
||||
package 第01期.mca_test;
|
||||
|
||||
import java.util.HashSet;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package 第01期_test;
|
||||
package 第01期.mca_test;
|
||||
|
||||
//leetcode 714
|
||||
public class Code06_BestTimeToBuyAndSellStockWithTransactionFee {
|
@ -1,4 +1,4 @@
|
||||
package 第01期_test;
|
||||
package 第01期.mca_test;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package 第01期_test;
|
||||
package 第01期.mca_test;
|
||||
|
||||
// 本题测试链接 : https://leetcode.com/problems/shortest-unsorted-continuous-subarray/
|
||||
public class Code07_MinLengthForSort {
|
@ -1,4 +1,4 @@
|
||||
package 第01期_test;
|
||||
package 第01期.mca_test;
|
||||
|
||||
public class Code07_MoneyProblem {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package 第01期_test;
|
||||
package 第01期.mca_test;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package 第01期_test;
|
||||
package 第01期.mca_test;
|
||||
|
||||
// 来自哈喽单车
|
||||
// 本题是leetcode原题 : https://leetcode.com/problems/stone-game-iv/
|
@ -1,4 +1,4 @@
|
||||
package 第01期_test;
|
||||
package 第01期.mca_test;
|
||||
|
||||
public class Problem_0152_MaximumProductSubarray {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package 第01期_test;
|
||||
package 第01期.mca_test;
|
||||
|
||||
public class Problem_0213_HouseRobberII {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package 第01期_test;
|
||||
package 第01期.mca_test;
|
||||
|
||||
public class Problem_0265_PaintHouseII {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package 第01期_test;
|
||||
package 第01期.mca_test;
|
||||
|
||||
public class Problem_0395_LongestSubstringWithAtLeastKRepeatingCharacters {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package 第01期_test;
|
||||
package 第01期.mca_test;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
Loading…
Reference in new issue