Ibrahimsyah / leetcode-codebase

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

LeetCode Topics

Tree

0094-binary-tree-inorder-traversal
0100-same-tree
0101-symmetric-tree
0104-maximum-depth-of-binary-tree
0108-convert-sorted-array-to-binary-search-tree
0109-convert-sorted-list-to-binary-search-tree
0111-minimum-depth-of-binary-tree
0112-path-sum
0129-sum-root-to-leaf-numbers
0145-binary-tree-postorder-traversal
0226-invert-binary-tree
0257-binary-tree-paths
0774-maximum-depth-of-n-ary-tree
1030-smallest-string-starting-from-leaf
1079-sum-of-root-to-leaf-binary-numbers

Depth-First Search

0094-binary-tree-inorder-traversal
0100-same-tree
0101-symmetric-tree
0104-maximum-depth-of-binary-tree
0111-minimum-depth-of-binary-tree
0112-path-sum
0129-sum-root-to-leaf-numbers
0145-binary-tree-postorder-traversal
0226-invert-binary-tree
0257-binary-tree-paths
0774-maximum-depth-of-n-ary-tree
1030-smallest-string-starting-from-leaf
1079-sum-of-root-to-leaf-binary-numbers

Binary Tree

0094-binary-tree-inorder-traversal
0100-same-tree
0101-symmetric-tree
0104-maximum-depth-of-binary-tree
0108-convert-sorted-array-to-binary-search-tree
0109-convert-sorted-list-to-binary-search-tree
0111-minimum-depth-of-binary-tree
0112-path-sum
0129-sum-root-to-leaf-numbers
0145-binary-tree-postorder-traversal
0226-invert-binary-tree
0257-binary-tree-paths
1030-smallest-string-starting-from-leaf
1079-sum-of-root-to-leaf-binary-numbers

Array

0001-two-sum
0011-container-with-most-water
0026-remove-duplicates-from-sorted-array
0034-find-first-and-last-position-of-element-in-sorted-array
0035-search-insert-position
0036-valid-sudoku
0039-combination-sum
0046-permutations
0088-merge-sorted-array
0108-convert-sorted-array-to-binary-search-tree
0118-pascals-triangle
0119-pascals-triangle-ii
0121-best-time-to-buy-and-sell-stock
0169-majority-element
0217-contains-duplicate
0268-missing-number
0347-top-k-frequent-elements
0792-binary-search
1019-squares-of-a-sorted-array
1331-path-with-maximum-gold
1395-minimum-time-visiting-all-points
1677-matrix-diagonal-sum
1786-count-the-number-of-consistent-strings
1803-average-waiting-time
1843-number-of-rectangles-that-can-form-the-largest-square
2231-find-first-palindromic-string-in-the-array
2254-check-if-every-row-and-column-contains-all-numbers
2324-find-triangular-sum-of-an-array
2341-count-prefixes-of-a-given-string
2386-min-max-game
2398-check-if-matrix-is-x-matrix
2594-count-pairs-of-similar-strings
3398-make-a-square-with-the-same-color
3446-find-the-number-of-good-pairs-i

Hash Table

0001-two-sum
0013-roman-to-integer
0036-valid-sudoku
0141-linked-list-cycle
0169-majority-element
0202-happy-number
0217-contains-duplicate
0242-valid-anagram
0268-missing-number
0347-top-k-frequent-elements
1786-count-the-number-of-consistent-strings
2254-check-if-every-row-and-column-contains-all-numbers
2594-count-pairs-of-similar-strings
3446-find-the-number-of-good-pairs-i

Linked List

0002-add-two-numbers
0083-remove-duplicates-from-sorted-list
0109-convert-sorted-list-to-binary-search-tree
0141-linked-list-cycle
0206-reverse-linked-list

Math

0002-add-two-numbers
0007-reverse-integer
0009-palindrome-number
0013-roman-to-integer
0062-unique-paths
0070-climbing-stairs
0202-happy-number
0258-add-digits
0268-missing-number
1236-n-th-tribonacci-number
1395-minimum-time-visiting-all-points
1806-count-of-matches-in-tournament
2238-a-number-after-a-double-reversal
2324-find-triangular-sum-of-an-array
2715-k-items-with-the-maximum-sum
2955-account-balance-after-rounded-purchase

Recursion

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

Two Pointers

0011-container-with-most-water
0026-remove-duplicates-from-sorted-array
0088-merge-sorted-array
0125-valid-palindrome
0141-linked-list-cycle
0202-happy-number
0344-reverse-string
0345-reverse-vowels-of-a-string
0557-reverse-words-in-a-string-iii
0953-reverse-only-letters
1019-squares-of-a-sorted-array
2128-reverse-prefix-of-word
2231-find-first-palindromic-string-in-the-array

Greedy

0011-container-with-most-water
2715-k-items-with-the-maximum-sum

String

0013-roman-to-integer
0020-valid-parentheses
0022-generate-parentheses
0058-length-of-last-word
0125-valid-palindrome
0242-valid-anagram
0257-binary-tree-paths
0344-reverse-string
0345-reverse-vowels-of-a-string
0557-reverse-words-in-a-string-iii
0953-reverse-only-letters
1030-smallest-string-starting-from-leaf
1298-reverse-substrings-between-each-pair-of-parentheses
1737-maximum-nesting-depth-of-the-parentheses
1786-count-the-number-of-consistent-strings
1823-determine-if-string-halves-are-alike
2128-reverse-prefix-of-word
2231-find-first-palindromic-string-in-the-array
2341-count-prefixes-of-a-given-string
2594-count-pairs-of-similar-strings

Dynamic Programming

0022-generate-parentheses
0062-unique-paths
0070-climbing-stairs
0118-pascals-triangle
0119-pascals-triangle-ii
0121-best-time-to-buy-and-sell-stock
1236-n-th-tribonacci-number

Breadth-First Search

0100-same-tree
0101-symmetric-tree
0104-maximum-depth-of-binary-tree
0111-minimum-depth-of-binary-tree
0112-path-sum
0226-invert-binary-tree
0774-maximum-depth-of-n-ary-tree

Stack

0020-valid-parentheses
0094-binary-tree-inorder-traversal
0145-binary-tree-postorder-traversal
1298-reverse-substrings-between-each-pair-of-parentheses
1737-maximum-nesting-depth-of-the-parentheses

Binary Search

0034-find-first-and-last-position-of-element-in-sorted-array
0035-search-insert-position
0268-missing-number
0278-first-bad-version
0374-guess-number-higher-or-lower
0792-binary-search

Counting

0169-majority-element
0347-top-k-frequent-elements
1823-determine-if-string-halves-are-alike

Simulation

0258-add-digits
1803-average-waiting-time
1806-count-of-matches-in-tournament
2324-find-triangular-sum-of-an-array
2386-min-max-game

Combinatorics

0062-unique-paths
2324-find-triangular-sum-of-an-array

Memoization

0070-climbing-stairs
1236-n-th-tribonacci-number

Backtracking

0022-generate-parentheses
0039-combination-sum
0046-permutations
0077-combinations
0257-binary-tree-paths
1030-smallest-string-starting-from-leaf
1331-path-with-maximum-gold

Matrix

0036-valid-sudoku
1331-path-with-maximum-gold
1677-matrix-diagonal-sum
2254-check-if-every-row-and-column-contains-all-numbers
2398-check-if-matrix-is-x-matrix
3398-make-a-square-with-the-same-color

Interactive

0278-first-bad-version
0374-guess-number-higher-or-lower

Bit Manipulation

0190-reverse-bits
0191-number-of-1-bits
0268-missing-number
1786-count-the-number-of-consistent-strings
2594-count-pairs-of-similar-strings

Sorting

0088-merge-sorted-array
0169-majority-element
0217-contains-duplicate
0242-valid-anagram
0268-missing-number
0347-top-k-frequent-elements
1019-squares-of-a-sorted-array

Divide and Conquer

0108-convert-sorted-array-to-binary-search-tree
0109-convert-sorted-list-to-binary-search-tree
0169-majority-element
0190-reverse-bits
0191-number-of-1-bits
0347-top-k-frequent-elements

Binary Search Tree

0108-convert-sorted-array-to-binary-search-tree
0109-convert-sorted-list-to-binary-search-tree

Number Theory

0258-add-digits

Database

0196-delete-duplicate-emails

Geometry

1395-minimum-time-visiting-all-points

Heap (Priority Queue)

0347-top-k-frequent-elements

Bucket Sort

0347-top-k-frequent-elements

Quickselect

0347-top-k-frequent-elements

Enumeration

3398-make-a-square-with-the-same-color

About


Languages

Language:Go 99.6%Language:Python 0.4%