Skip to content

Files

Latest commit

 

History

History
2807 lines (2767 loc) · 184 KB

endlesscheng.md

File metadata and controls

2807 lines (2767 loc) · 184 KB
  1. https://leetcode.com/problems/maximum-number-of-vowels-in-a-substring-of-given-length/

  2. https://leetcode.com/problems/maximum-average-subarray-i/

  3. https://leetcode.com/problems/number-of-sub-arrays-of-size-k-and-average-greater-than-or-equal-to-threshold/

  4. https://leetcode.com/problems/k-radius-subarray-averages/

  5. https://leetcode.com/problems/minimum-recolors-to-get-k-consecutive-black-blocks/

  6. https://leetcode.com/problems/grumpy-bookstore-owner/ +Mark

  7. https://leetcode.com/problems/maximum-sum-of-almost-unique-subarray/

  8. https://leetcode.com/problems/maximum-sum-of-distinct-subarrays-with-length-k/

  9. https://leetcode.com/problems/maximum-points-you-can-obtain-from-cards/ +Mark

  10. https://leetcode.com/problems/defuse-the-bomb/

  11. https://leetcode.com/problems/diet-plan-performance/

  12. https://leetcode.com/problems/find-k-length-substrings-with-no-repeated-characters/

  13. https://www.lintcode.com/problem/distinct-numbers-in-each-subarray/

  14. https://www.lintcode.com/problem/minimum-swaps-to-group-all-1s-together/

  15. https://www.lintcode.com/problem/number-of-unique-flavors-remaining-after-sharing-k-candies/

  16. https://leetcode.com/problems/reschedule-meetings-for-maximum-free-time-i/

  17. https://leetcode.com/problems/minimum-swaps-to-group-all-1s-together-ii/

  18. https://leetcode.com/problems/maximum-number-of-occurrences-of-a-substring/

  19. https://leetcode.com/problems/sliding-subarray-beauty/ +Mark

  20. https://leetcode.com/problems/minimum-number-of-flips-to-make-the-binary-string-alternating/ +Mark

  21. https://leetcode.com/problems/permutation-in-string/

  22. https://leetcode.com/problems/find-all-anagrams-in-a-string/

  23. https://leetcode.com/problems/substring-with-concatenation-of-all-words/

  24. https://leetcode.com/problems/find-substring-with-given-hash-value/ +Mark

  25. https://leetcode.com/problems/count-complete-substrings/

  26. https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/

  27. https://www.lintcode.com/problem/k-empty-slots/ +Mark

  28. https://www.lintcode.com/problem/number-of-equal-count-substrings/

  29. https://leetcode.com/problems/maximum-frequency-score-of-a-subarray/

  30. https://leetcode.com/problems/find-the-k-beauty-of-a-number/

  31. https://leetcode.com/problems/minimum-difference-between-highest-and-lowest-of-k-scores/

  32. https://leetcode.com/problems/check-if-a-string-contains-all-binary-codes-of-size-k/

  33. https://leetcode.com/problems/contains-duplicate-iii/ +Mark

Variable-length

  1. https://leetcode.com/problems/longest-substring-without-repeating-characters/

  2. https://leetcode.com/problems/maximum-length-substring-with-two-occurrences/

  3. https://leetcode.com/problems/longest-subarray-of-1s-after-deleting-one-element/

  4. https://leetcode.com/problems/get-equal-substrings-within-budget/

  5. https://leetcode.com/problems/fruit-into-baskets/

  6. https://leetcode.com/problems/maximum-erasure-value/

  7. https://leetcode.com/problems/length-of-longest-subarray-with-at-most-k-frequency/

  8. https://leetcode.com/problems/maximize-the-confusion-of-an-exam/ +Mark

  9. https://leetcode.com/problems/max-consecutive-ones-iii/

  10. https://leetcode.com/problems/minimum-operations-to-reduce-x-to-zero/

  11. https://leetcode.com/problems/find-the-longest-semi-repetitive-substring/

  12. https://leetcode.com/problems/maximum-beauty-of-an-array-after-applying-operation/ +Mark

  13. https://leetcode.com/problems/frequency-of-the-most-frequent-element/

  14. https://leetcode.com/problems/take-k-of-each-character-from-left-and-right/

  15. https://leetcode.com/problems/find-the-longest-equal-subarray/ +Mark

  16. https://leetcode.com/problems/maximum-white-tiles-covered-by-a-carpet/ +Mark

  17. https://leetcode.com/problems/maximum-fruits-harvested-after-at-most-k-steps/ +Mark

  18. https://leetcode.com/problems/maximize-win-from-two-segments/ +Mark

  19. https://leetcode.com/problems/minimum-number-of-operations-to-make-array-continuous/ +Mark

  20. https://leetcode.com/problems/maximum-number-of-visible-points/

  21. https://leetcode.com/problems/length-of-the-longest-valid-substring/

  22. https://leetcode.com/problems/maximum-subarray-with-equal-products/ +Mark

  23. https://leetcode.com/problems/apply-operations-to-maximize-frequency-score/ +Mark

  24. https://leetcode.com/problems/moving-stones-until-consecutive-ii/ +Mark

  25. https://leetcode.com/problems/maximum-coins-from-k-consecutive-bags/ +Mark

  26. https://leetcode.com/problems/longest-substring-with-at-least-k-repeating-characters/ +Mark

  27. https://leetcode.com/problems/longest-nice-substring/

  28. https://www.lintcode.com/problem/max-consecutive-ones-ii/

  29. https://www.lintcode.com/problem/longest-substring-with-at-most-two-distinct-characters/

  30. https://www.lintcode.com/problem/longest-substring-with-at-most-k-distinct-characters/

  31. https://leetcode.com/problems/minimum-size-subarray-sum/

  32. https://leetcode.com/problems/shortest-and-lexicographically-smallest-beautiful-string/

  33. https://leetcode.com/problems/replace-the-substring-for-balanced-string/ +Mark

  34. https://leetcode.com/problems/minimum-size-subarray-in-infinite-array/

  35. https://leetcode.com/problems/minimum-window-substring/ +Mark

  36. https://leetcode.com/problems/smallest-range-covering-elements-from-k-lists/

  37. https://leetcode.com/problems/number-of-substrings-containing-all-three-characters/

  38. https://leetcode.com/problems/count-subarrays-where-max-element-appears-at-least-k-times/

  39. https://leetcode.com/problems/count-substrings-with-k-frequency-characters-i/

  40. https://leetcode.com/problems/count-complete-subarrays-in-an-array/

  41. https://leetcode.com/problems/count-the-number-of-good-subarrays/

  42. https://leetcode.com/problems/count-substrings-that-can-be-rearranged-to-contain-a-string-ii/

  43. https://www.lintcode.com/problem/number-of-subarrays-having-even-product/

  44. https://leetcode.com/problems/subarray-product-less-than-k/

  45. https://leetcode.com/problems/count-substrings-that-satisfy-k-constraint-i/

  46. https://leetcode.com/problems/count-subarrays-with-score-less-than-k/

  47. https://leetcode.com/problems/continuous-subarrays/

  48. https://leetcode.com/problems/count-substrings-without-repeating-character/

  49. https://leetcode.com/problems/find-the-median-of-the-uniqueness-array/ +Mark

  50. https://leetcode.com/problems/count-substrings-that-satisfy-k-constraint-ii/

  51. https://leetcode.com/problems/binary-subarrays-with-sum/

  52. https://leetcode.com/problems/count-number-of-nice-subarrays/

  53. https://leetcode.com/problems/count-of-substrings-containing-every-vowel-and-k-consonants-ii/ +Mark

  54. https://leetcode.com/problems/subarrays-with-k-different-integers/

  55. https://leetcode.com/problems/longest-continuous-subarray-with-absolute-diff-less-than-or-equal-to-limit/

  56. https://leetcode.com/problems/friends-of-appropriate-ages/ +Mark

  57. https://leetcode.com/problems/longest-nice-subarray/

  58. https://leetcode.com/problems/swap-for-longest-repeated-character-substring/

  59. https://leetcode.com/problems/longest-repeating-character-replacement/

  60. https://leetcode.com/problems/find-all-anagrams-in-a-string/ +duplicate

  61. https://leetcode.com/problems/ways-to-split-array-into-three-subarrays/ +Mark

  62. https://www.lintcode.com/problem/kth-smallest-subarray-sum/ +Mark

Two Pointers

  1. https://leetcode.com/problems/reverse-string/

  2. https://leetcode.com/problems/valid-palindrome/

  3. https://leetcode.com/problems/minimum-length-of-string-after-deleting-similar-ends/

  4. https://leetcode.com/problems/watering-plants-ii/

  5. https://leetcode.com/problems/squares-of-a-sorted-array/

  6. https://leetcode.com/problems/find-k-closest-elements/

  7. https://leetcode.com/problems/the-k-strongest-values-in-an-array/

  8. https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/

  9. https://leetcode.com/problems/count-the-number-of-fair-pairs/

  10. https://leetcode.com/problems/sum-of-square-numbers/

  11. https://leetcode.com/problems/count-pairs-whose-sum-is-less-than-target/ +Mark

  12. https://leetcode.com/problems/3sum/

  13. https://leetcode.com/problems/3sum-closest/

  14. https://leetcode.com/problems/4sum/ +Mark

  15. https://leetcode.com/problems/valid-triangle-number/ +Mark

  16. https://leetcode.com/problems/number-of-ways-where-square-of-number-is-equal-to-product-of-two-numbers/

  17. https://leetcode.com/problems/3sum-with-multiplicity/ +Mark

  18. https://leetcode.com/problems/bag-of-tokens/

  19. https://leetcode.com/problems/container-with-most-water/ +Mark

  20. https://leetcode.com/problems/trapping-rain-water/ +Mark

  21. https://leetcode.com/problems/split-two-strings-to-make-palindrome/ +Mark

  22. https://leetcode.com/problems/number-of-subsequences-that-satisfy-the-given-sum-condition/ +Mark

  23. https://leetcode.com/problems/count-pairs-of-nodes/ +Mark

  24. https://www.lintcode.com/problem/two-sum-less-than-target/

  25. https://leetcode.com/problems/sort-transformed-array/

  26. https://www.lintcode.com/problem/merge-operations-to-turn-array-into-a-palindrome/

  27. https://www.lintcode.com/problem/3sum-smaller/

  28. https://leetcode.com/problems/valid-triangle-number/ +duplicate

  29. https://leetcode.com/problems/shortest-subarray-to-be-removed-to-make-array-sorted/ +Mark

  30. https://leetcode.com/problems/count-the-number-of-incremovable-subarrays-ii/ +Mark

  31. https://leetcode.com/problems/recover-the-original-array/ +Mark

  32. https://leetcode.com/problems/maximum-total-beauty-of-the-gardens/ +Mark

  33. https://leetcode.com/problems/minimize-connected-groups-by-inserting-interval/

  34. https://leetcode.com/problems/shortest-unsorted-continuous-subarray/ +Mark

  35. https://leetcode.com/problems/maximum-score-of-a-good-subarray/

  36. https://leetcode.com/problems/remove-element/

  37. https://leetcode.com/problems/remove-duplicates-from-sorted-array/

  38. https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/

  39. https://leetcode.com/problems/move-zeroes/

  40. https://leetcode.com/problems/sort-array-by-parity/

  41. https://leetcode.com/problems/sort-array-by-parity-ii/ +Mark

https://leetcode.com/problems/climbing-stairs/solution/jiao-ni-yi-bu-bu-si-kao-dong-tai-gui-hua-7zm1/

https://leetcode.com/problems/two-sum/solution/dong-hua-cong-liang-shu-zhi-he-zhong-wo-0yvmj/