Skip to content

Seongnam-si/leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

leetcode

A collection of LeetCode questions to ace the coding interview! - Created using LeetHub v2

LeetCode Topics

Array

0001-two-sum
0027-remove-element
0053-maximum-subarray
0054-spiral-matrix
0057-insert-interval
0075-sort-colors
0108-convert-sorted-array-to-binary-search-tree
0121-best-time-to-buy-and-sell-stock
0136-single-number
0139-word-break
0169-majority-element
0200-number-of-islands
0217-contains-duplicate
0268-missing-number
0283-move-zeroes
0287-find-the-duplicate-number
0368-largest-divisible-subset
0733-flood-fill
0792-binary-search
0797-rabbits-in-forest
1014-k-closest-points-to-origin
1019-squares-of-a-sorted-array
1421-find-numbers-with-even-number-of-digits
1878-check-if-array-is-sorted-and-rotated
2308-divide-array-into-equal-pairs
2551-apply-operations-to-an-array
2614-maximum-count-of-positive-integer-and-negative-integer
2888-minimum-index-of-a-valid-split
3429-special-array-i
3656-minimum-number-of-operations-to-make-elements-in-array-distinct
3685-count-subarrays-of-length-three-with-a-condition

Hash Table

0001-two-sum
0003-longest-substring-without-repeating-characters
0013-roman-to-integer
0139-word-break
0141-linked-list-cycle
0169-majority-element
0217-contains-duplicate
0242-valid-anagram
0268-missing-number
0383-ransom-note
0409-longest-palindrome
0797-rabbits-in-forest
2308-divide-array-into-equal-pairs
2888-minimum-index-of-a-valid-split
3656-minimum-number-of-operations-to-make-elements-in-array-distinct

String

0003-longest-substring-without-repeating-characters
0013-roman-to-integer
0020-valid-parentheses
0028-find-the-index-of-the-first-occurrence-in-a-string
0058-length-of-last-word
0067-add-binary
0125-valid-palindrome
0139-word-break
0242-valid-anagram
0344-reverse-string
0383-ransom-note
0409-longest-palindrome
0874-backspace-string-compare
1894-merge-strings-alternately
2463-minimum-recolors-to-get-k-consecutive-black-blocks

Stack

0020-valid-parentheses
0094-binary-tree-inorder-traversal
0232-implement-queue-using-stacks
0234-palindrome-linked-list
0874-backspace-string-compare

Dynamic Programming

0053-maximum-subarray
0062-unique-paths
0070-climbing-stairs
0121-best-time-to-buy-and-sell-stock
0139-word-break
0338-counting-bits
0368-largest-divisible-subset

Two Pointers

0027-remove-element
0028-find-the-index-of-the-first-occurrence-in-a-string
0075-sort-colors
0125-valid-palindrome
0141-linked-list-cycle
0234-palindrome-linked-list
0283-move-zeroes
0287-find-the-duplicate-number
0344-reverse-string
0874-backspace-string-compare
0908-middle-of-the-linked-list
1019-squares-of-a-sorted-array
1894-merge-strings-alternately
2551-apply-operations-to-an-array

Sorting

0075-sort-colors
0169-majority-element
0217-contains-duplicate
0242-valid-anagram
0268-missing-number
0368-largest-divisible-subset
1014-k-closest-points-to-origin
1019-squares-of-a-sorted-array
2888-minimum-index-of-a-valid-split

Binary Search

0268-missing-number
0278-first-bad-version
0287-find-the-duplicate-number
0792-binary-search
2614-maximum-count-of-positive-integer-and-negative-integer

Depth-First Search

0094-binary-tree-inorder-traversal
0101-symmetric-tree
0104-maximum-depth-of-binary-tree
0110-balanced-binary-tree
0200-number-of-islands
0226-invert-binary-tree
0235-lowest-common-ancestor-of-a-binary-search-tree
0572-subtree-of-another-tree
0733-flood-fill

Breadth-First Search

0101-symmetric-tree
0104-maximum-depth-of-binary-tree
0200-number-of-islands
0226-invert-binary-tree
0733-flood-fill

Matrix

0054-spiral-matrix
0200-number-of-islands
0733-flood-fill

Tree

0094-binary-tree-inorder-traversal
0101-symmetric-tree
0104-maximum-depth-of-binary-tree
0108-convert-sorted-array-to-binary-search-tree
0110-balanced-binary-tree
0226-invert-binary-tree
0235-lowest-common-ancestor-of-a-binary-search-tree
0572-subtree-of-another-tree

Binary Tree

0094-binary-tree-inorder-traversal
0101-symmetric-tree
0104-maximum-depth-of-binary-tree
0108-convert-sorted-array-to-binary-search-tree
0110-balanced-binary-tree
0226-invert-binary-tree
0235-lowest-common-ancestor-of-a-binary-search-tree
0572-subtree-of-another-tree

Binary Search Tree

0108-convert-sorted-array-to-binary-search-tree
0235-lowest-common-ancestor-of-a-binary-search-tree

Linked List

0021-merge-two-sorted-lists
0141-linked-list-cycle
0206-reverse-linked-list
0234-palindrome-linked-list
0908-middle-of-the-linked-list

Recursion

0021-merge-two-sorted-lists
0206-reverse-linked-list
0234-palindrome-linked-list

Design

0232-implement-queue-using-stacks

Queue

0232-implement-queue-using-stacks

Interactive

0278-first-bad-version

Counting

0169-majority-element
0383-ransom-note
2308-divide-array-into-equal-pairs
2614-maximum-count-of-positive-integer-and-negative-integer

Math

0009-palindrome-number
0013-roman-to-integer
0062-unique-paths
0067-add-binary
0070-climbing-stairs
0268-missing-number
0368-largest-divisible-subset
0797-rabbits-in-forest
1014-k-closest-points-to-origin
1421-find-numbers-with-even-number-of-digits
2998-count-symmetric-integers

Memoization

0070-climbing-stairs
0139-word-break

Greedy

0409-longest-palindrome
0797-rabbits-in-forest

Divide and Conquer

0053-maximum-subarray
0108-convert-sorted-array-to-binary-search-tree
0169-majority-element
0190-reverse-bits
0191-number-of-1-bits
1014-k-closest-points-to-origin

Bit Manipulation

0067-add-binary
0136-single-number
0190-reverse-bits
0191-number-of-1-bits
0268-missing-number
0287-find-the-duplicate-number
0338-counting-bits
2308-divide-array-into-equal-pairs

Simulation

0054-spiral-matrix
0067-add-binary
0874-backspace-string-compare
2551-apply-operations-to-an-array

String Matching

0028-find-the-index-of-the-first-occurrence-in-a-string
0572-subtree-of-another-tree

Hash Function

0572-subtree-of-another-tree

Sliding Window

0003-longest-substring-without-repeating-characters
2463-minimum-recolors-to-get-k-consecutive-black-blocks

Geometry

1014-k-closest-points-to-origin

Heap (Priority Queue)

1014-k-closest-points-to-origin

Quickselect

1014-k-closest-points-to-origin

Union Find

0200-number-of-islands

Combinatorics

0062-unique-paths

Trie

0139-word-break

Enumeration

2998-count-symmetric-integers

About

리트코드 알고리즘 기록 레포지토리입니다.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published