Skip to content

dawnie-g/Algorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,252 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Algorithm

update for solved algorithm problems

Array

0001-two-sum
0033-search-in-rotated-sorted-array
0200-number-of-islands
0643-maximum-average-subarray-i
0860-design-circular-queue

Hash Table

0001-two-sum

Math

0069-sqrtx
1236-n-th-tribonacci-number

Binary Search

0033-search-in-rotated-sorted-array
0069-sqrtx
0374-guess-number-higher-or-lower

Interactive

0374-guess-number-higher-or-lower

Linked List

0860-design-circular-queue

Design

0860-design-circular-queue

Queue

0860-design-circular-queue

Stack

0094-binary-tree-inorder-traversal
0144-binary-tree-preorder-traversal
0145-binary-tree-postorder-traversal

Tree

0094-binary-tree-inorder-traversal
0102-binary-tree-level-order-traversal
0144-binary-tree-preorder-traversal
0145-binary-tree-postorder-traversal

Depth-First Search

0094-binary-tree-inorder-traversal
0144-binary-tree-preorder-traversal
0145-binary-tree-postorder-traversal
0200-number-of-islands
2121-find-if-path-exists-in-graph

Binary Tree

0094-binary-tree-inorder-traversal
0102-binary-tree-level-order-traversal
0144-binary-tree-preorder-traversal
0145-binary-tree-postorder-traversal

Breadth-First Search

0102-binary-tree-level-order-traversal
0200-number-of-islands
2121-find-if-path-exists-in-graph

Sliding Window

0643-maximum-average-subarray-i

Union Find

0200-number-of-islands
2121-find-if-path-exists-in-graph

Matrix

0200-number-of-islands

Graph

2121-find-if-path-exists-in-graph

Dynamic Programming

1236-n-th-tribonacci-number

Memoization

1236-n-th-tribonacci-number

LeetCode Topics

Array

0027-remove-element
0088-merge-sorted-array
0198-house-robber
0200-number-of-islands
0485-max-consecutive-ones
0753-open-the-lock
0952-word-subsets
1019-squares-of-a-sorted-array
1168-duplicate-zeros
1364-tuple-with-same-product
1396-count-servers-that-communicate
1421-find-numbers-with-even-number-of-digits
1603-running-sum-of-1d-array
1791-richest-customer-wealth
2107-find-unique-binary-string
2292-counting-words-with-a-given-prefix
2473-max-sum-of-a-pair-with-equal-sum-of-digits
2533-bitwise-xor-of-all-pairings
2606-difference-between-ones-and-zeros-in-row-and-column
2764-maximum-number-of-fish-in-a-grid
2766-find-the-prefix-common-array-of-two-arrays
2831-number-of-beautiful-pairs
3309-count-prefix-and-suffix-pairs-i
3332-minimum-operations-to-exceed-threshold-value-ii

Matrix

0200-number-of-islands
1396-count-servers-that-communicate
1791-richest-customer-wealth
2606-difference-between-ones-and-zeros-in-row-and-column
2764-maximum-number-of-fish-in-a-grid

Simulation

2021-remove-all-occurrences-of-a-substring
2606-difference-between-ones-and-zeros-in-row-and-column
3332-minimum-operations-to-exceed-threshold-value-ii

Two Pointers

0027-remove-element
0088-merge-sorted-array
0125-valid-palindrome
0392-is-subsequence
1019-squares-of-a-sorted-array
1168-duplicate-zeros
1894-merge-strings-alternately

Sorting

0088-merge-sorted-array
1019-squares-of-a-sorted-array
2473-max-sum-of-a-pair-with-equal-sum-of-digits

Dynamic Programming

0070-climbing-stairs
0198-house-robber
0279-perfect-squares
0338-counting-bits
0392-is-subsequence

Bit Manipulation

0338-counting-bits
1444-number-of-steps-to-reduce-a-number-to-zero
2533-bitwise-xor-of-all-pairings
2766-find-the-prefix-common-array-of-two-arrays

Math

0070-climbing-stairs
0279-perfect-squares
1421-find-numbers-with-even-number-of-digits
1444-number-of-steps-to-reduce-a-number-to-zero
2831-number-of-beautiful-pairs

Memoization

0070-climbing-stairs

Depth-First Search

0200-number-of-islands
1396-count-servers-that-communicate
2764-maximum-number-of-fish-in-a-grid

Breadth-First Search

0200-number-of-islands
0279-perfect-squares
0753-open-the-lock
1396-count-servers-that-communicate
2764-maximum-number-of-fish-in-a-grid

Union Find

0200-number-of-islands
1396-count-servers-that-communicate
2764-maximum-number-of-fish-in-a-grid

Hash Table

0383-ransom-note
0753-open-the-lock
0952-word-subsets
1160-letter-tile-possibilities
1364-tuple-with-same-product
1502-construct-k-palindrome-strings
1915-check-if-one-string-swap-can-make-strings-equal
2107-find-unique-binary-string
2473-max-sum-of-a-pair-with-equal-sum-of-digits
2766-find-the-prefix-common-array-of-two-arrays
2831-number-of-beautiful-pairs

String

0125-valid-palindrome
0383-ransom-note
0392-is-subsequence
0753-open-the-lock
0952-word-subsets
1160-letter-tile-possibilities
1502-construct-k-palindrome-strings
1516-the-k-th-lexicographical-string-of-all-happy-strings-of-length-n
1537-maximum-score-after-splitting-a-string
1894-merge-strings-alternately
1915-check-if-one-string-swap-can-make-strings-equal
2021-remove-all-occurrences-of-a-substring
2107-find-unique-binary-string
2221-check-if-a-parentheses-string-can-be-valid
2292-counting-words-with-a-given-prefix
3309-count-prefix-and-suffix-pairs-i

Stack

0155-min-stack
2021-remove-all-occurrences-of-a-substring
2221-check-if-a-parentheses-string-can-be-valid

Design

0155-min-stack

Prefix Sum

1537-maximum-score-after-splitting-a-string
1603-running-sum-of-1d-array

Counting

0383-ransom-note
1160-letter-tile-possibilities
1364-tuple-with-same-product
1396-count-servers-that-communicate
1502-construct-k-palindrome-strings
1915-check-if-one-string-swap-can-make-strings-equal
2831-number-of-beautiful-pairs

Trie

3309-count-prefix-and-suffix-pairs-i

Rolling Hash

3309-count-prefix-and-suffix-pairs-i

String Matching

2292-counting-words-with-a-given-prefix
3309-count-prefix-and-suffix-pairs-i

Hash Function

3309-count-prefix-and-suffix-pairs-i

Greedy

1502-construct-k-palindrome-strings
2221-check-if-a-parentheses-string-can-be-valid

Number Theory

2831-number-of-beautiful-pairs

Brainteaser

2533-bitwise-xor-of-all-pairings

Heap (Priority Queue)

2473-max-sum-of-a-pair-with-equal-sum-of-digits
3332-minimum-operations-to-exceed-threshold-value-ii

Backtracking

1160-letter-tile-possibilities
1516-the-k-th-lexicographical-string-of-all-happy-strings-of-length-n
2107-find-unique-binary-string

About

update for solved problems or solving problem

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages