modify code

master
algorithmzuo 3 years ago
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;
// 测试链接https://leetcode.com/problems/first-missing-positive/
public class Code02_MissingNumber {

@ -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;
// 来自小红书
// 一个无序数组长度为n所有数字都不一样并且值都在[0...n-1]范围上

@ -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;
// 测试链接 : 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;
// 来自网易
// 给定一个正数数组arr表示每个小朋友的得分

@ -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.Stack;

@ -1,4 +1,4 @@
package 01_mca_04_about_data_structure;
package 01.mca_04_about_data_structure;
// 本题为leetcode原题
// 测试链接https://leetcode.com/problems/friend-circles/

@ -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;
// 来自CMU入学申请考试
// 给定一个长度为 N 的字符串 S由字符'a'和'b'组成,空隙由 '?' 表示

@ -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;
// leetcode原题
// 测试链接https://leetcode.com/problems/split-array-largest-sum/

@ -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_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;
// 这个问题leetcode上可以直接测
// 链接https://leetcode.com/problems/longest-common-subsequence/

@ -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;
//有m个同样的苹果认为苹果之间无差别
//有n个同样的盘子认为盘子之间也无差别

@ -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;
// 测试链接https://leetcode.com/problems/longest-palindromic-subsequence/
public class Code01_PalindromeSubsequence {

@ -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;
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;
//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;
// 这个问题leetcode上可以直接测
// 链接https://leetcode.com/problems/longest-common-subsequence/

@ -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原题
// 测试链接https://leetcode.com/problems/split-array-largest-sum/

@ -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;
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;
// 本题测试链接 : 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;
import java.util.HashMap;
import java.util.HashSet;
Loading…
Cancel
Save