Skip to content

chungyu1108/LeetCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode

A collection of LeetCode questions for my milestone

LeetCode Topics

Array

0001-two-sum
0026-remove-duplicates-from-sorted-array
0027-remove-element
0045-jump-game-ii
0055-jump-game
0080-remove-duplicates-from-sorted-array-ii
0088-merge-sorted-array
0121-best-time-to-buy-and-sell-stock
0122-best-time-to-buy-and-sell-stock-ii
0134-gas-station
0135-candy
0169-majority-element
0189-rotate-array
0238-product-of-array-except-self
0274-h-index
0380-insert-delete-getrandom-o1
0632-smallest-range-covering-elements-from-k-lists
0729-my-calendar-i
1002-maximum-width-ramp
1256-rank-transform-of-an-array
1319-unique-number-of-occurrences
1350-remove-sub-folders-from-the-filesystem
1940-maximum-xor-for-each-query
2170-count-number-of-maximum-bitwise-or-subsets
2356-largest-combination-with-bitwise-and-greater-than-zero
2488-divide-intervals-into-minimum-number-of-groups
2552-maximum-sum-of-distinct-subarrays-with-length-k
2586-longest-square-streak-in-an-array
2616-maximal-score-after-applying-k-operations
2794-maximum-number-of-moves-in-a-grid
2823-the-knights-tour
3291-find-if-array-can-be-sorted

Hash Table

0001-two-sum
0003-longest-substring-without-repeating-characters
0012-integer-to-roman
0013-roman-to-integer
0169-majority-element
0380-insert-delete-getrandom-o1
0632-smallest-range-covering-elements-from-k-lists
1256-rank-transform-of-an-array
1319-unique-number-of-occurrences
1715-split-a-string-into-the-max-number-of-unique-substrings
2356-largest-combination-with-bitwise-and-greater-than-zero
2552-maximum-sum-of-distinct-subarrays-with-length-k
2586-longest-square-streak-in-an-array

Two Pointers

0026-remove-duplicates-from-sorted-array
0027-remove-element
0028-find-the-index-of-the-first-occurrence-in-a-string
0080-remove-duplicates-from-sorted-array-ii
0088-merge-sorted-array
0189-rotate-array
0392-is-subsequence
2095-minimum-number-of-swaps-to-make-the-string-balanced
2488-divide-intervals-into-minimum-number-of-groups
3195-separate-black-and-white-balls

Sorting

0088-merge-sorted-array
0169-majority-element
0274-h-index
0632-smallest-range-covering-elements-from-k-lists
1256-rank-transform-of-an-array
2488-divide-intervals-into-minimum-number-of-groups
2586-longest-square-streak-in-an-array
2646-kth-largest-sum-in-a-binary-tree
3291-find-if-array-can-be-sorted

Divide and Conquer

0169-majority-element

Counting

0169-majority-element
2356-largest-combination-with-bitwise-and-greater-than-zero

Math

0002-add-two-numbers
0012-integer-to-roman
0013-roman-to-integer
0067-add-binary
0189-rotate-array
0380-insert-delete-getrandom-o1
0670-maximum-swap

Dynamic Programming

0045-jump-game-ii
0055-jump-game
0121-best-time-to-buy-and-sell-stock
0122-best-time-to-buy-and-sell-stock-ii
0392-is-subsequence
2586-longest-square-streak-in-an-array
2794-maximum-number-of-moves-in-a-grid

Greedy

0045-jump-game-ii
0055-jump-game
0122-best-time-to-buy-and-sell-stock-ii
0134-gas-station
0135-candy
0632-smallest-range-covering-elements-from-k-lists
0670-maximum-swap
0957-minimum-add-to-make-parentheses-valid
1304-longest-happy-string
2095-minimum-number-of-swaps-to-make-the-string-balanced
2488-divide-intervals-into-minimum-number-of-groups
2616-maximal-score-after-applying-k-operations
3195-separate-black-and-white-balls

Tree

0100-same-tree
0104-maximum-depth-of-binary-tree
2646-kth-largest-sum-in-a-binary-tree

Depth-First Search

0100-same-tree
0104-maximum-depth-of-binary-tree
1350-remove-sub-folders-from-the-filesystem

Breadth-First Search

0100-same-tree
0104-maximum-depth-of-binary-tree
2646-kth-largest-sum-in-a-binary-tree

Binary Tree

0100-same-tree
0104-maximum-depth-of-binary-tree
2646-kth-largest-sum-in-a-binary-tree

Linked List

0002-add-two-numbers
0206-reverse-linked-list

Recursion

0002-add-two-numbers
0206-reverse-linked-list
1197-parsing-a-boolean-expression
1667-find-kth-bit-in-nth-binary-string

String

0003-longest-substring-without-repeating-characters
0012-integer-to-roman
0013-roman-to-integer
0014-longest-common-prefix
0020-valid-parentheses
0028-find-the-index-of-the-first-occurrence-in-a-string
0058-length-of-last-word
0067-add-binary
0214-shortest-palindrome
0392-is-subsequence
0812-rotate-string
0957-minimum-add-to-make-parentheses-valid
1197-parsing-a-boolean-expression
1302-delete-characters-to-make-fancy-string
1304-longest-happy-string
1350-remove-sub-folders-from-the-filesystem
1667-find-kth-bit-in-nth-binary-string
1715-split-a-string-into-the-max-number-of-unique-substrings
2095-minimum-number-of-swaps-to-make-the-string-balanced
2580-circular-sentence
2800-minimum-string-length-after-removing-substrings
3174-minimum-number-of-changes-to-make-binary-string-beautiful
3195-separate-black-and-white-balls

Stack

0020-valid-parentheses
0957-minimum-add-to-make-parentheses-valid
1002-maximum-width-ramp
1197-parsing-a-boolean-expression
2095-minimum-number-of-swaps-to-make-the-string-balanced
2800-minimum-string-length-after-removing-substrings

Rolling Hash

0214-shortest-palindrome

String Matching

0028-find-the-index-of-the-first-occurrence-in-a-string
0214-shortest-palindrome
0812-rotate-string

Hash Function

0214-shortest-palindrome

Counting Sort

0274-h-index

Design

0380-insert-delete-getrandom-o1
0729-my-calendar-i

Randomized

0380-insert-delete-getrandom-o1

Prefix Sum

0238-product-of-array-except-self
1940-maximum-xor-for-each-query
2488-divide-intervals-into-minimum-number-of-groups

Database

0175-combine-two-tables
0183-customers-who-never-order
0586-customer-placing-the-largest-number-of-orders
0607-sales-person
1179-game-play-analysis-i
1214-highest-grade-for-each-student
1339-team-scores-in-football-tournament
1536-customers-who-bought-products-a-and-b-but-not-c
1541-top-travellers
1565-evaluate-boolean-expression
1718-warehouse-manager
1749-sellers-with-no-sales
1974-find-customers-with-positive-revenue-this-year
2024-calculate-special-bonus
2041-the-latest-login-in-2020

Binary Search

0729-my-calendar-i
2586-longest-square-streak-in-an-array

Segment Tree

0729-my-calendar-i

Ordered Set

0729-my-calendar-i

Trie

0014-longest-common-prefix
1350-remove-sub-folders-from-the-filesystem

Simulation

0067-add-binary
1667-find-kth-bit-in-nth-binary-string
2800-minimum-string-length-after-removing-substrings

Monotonic Stack

1002-maximum-width-ramp

Heap (Priority Queue)

0632-smallest-range-covering-elements-from-k-lists
1304-longest-happy-string
2488-divide-intervals-into-minimum-number-of-groups
2616-maximal-score-after-applying-k-operations

Sliding Window

0003-longest-substring-without-repeating-characters
0632-smallest-range-covering-elements-from-k-lists
2552-maximum-sum-of-distinct-subarrays-with-length-k

Backtracking

1715-split-a-string-into-the-max-number-of-unique-substrings
2170-count-number-of-maximum-bitwise-or-subsets
2823-the-knights-tour

Bit Manipulation

0067-add-binary
1940-maximum-xor-for-each-query
2170-count-number-of-maximum-bitwise-or-subsets
2356-largest-combination-with-bitwise-and-greater-than-zero
3291-find-if-array-can-be-sorted

Enumeration

2170-count-number-of-maximum-bitwise-or-subsets

Matrix

2794-maximum-number-of-moves-in-a-grid
2823-the-knights-tour

About

A collection of LeetCode questions for my milestone! - Created using [LeetHub v2](https://github.com/arunbhardwaj/LeetHub-2.0)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published