Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,755 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Algorithm


  • Brute-force
  • Divide And Conquer
  • Dynamic Programming
  • Greedy
  • Combinatorial Search
  • Bisection Method
  • Ternary Search
  • Number Theory
  • Computational Geometry
  • Bitmask
  • Partial Sum (Prefix Sum)
  • Data Structures
  • String
  • Tree
  • Binary Search Tree
  • Segment Tree

LeetCode Topics

Array

0001-two-sum
0004-median-of-two-sorted-arrays
0011-container-with-most-water
0035-search-insert-position
0046-permutations
0048-rotate-image
0066-plus-one
0118-pascals-triangle
0120-triangle
0136-single-number
0486-predict-the-winner
0628-maximum-product-of-three-numbers
1288-remove-covered-intervals
1331-rank-transform-of-an-array
1464-maximum-product-of-two-elements-in-an-array
1732-find-the-highest-altitude
1967-number-of-strings-that-appear-as-substrings-in-word
1979-find-greatest-common-divisor-of-array
3286-find-a-safe-walk-through-a-grid
3532-path-existence-queries-in-a-graph-i
3838-weighted-word-mapping
3867-sum-of-gcd-of-formed-pairs

Hash Table

0001-two-sum
0003-longest-substring-without-repeating-characters
1189-maximum-number-of-balloons
1331-rank-transform-of-an-array
1358-number-of-substrings-containing-all-three-characters
3532-path-existence-queries-in-a-graph-i

Math

0002-add-two-numbers
0007-reverse-integer
0009-palindrome-number
0048-rotate-image
0066-plus-one
0067-add-binary
0069-sqrtx
0070-climbing-stairs
0486-predict-the-winner
0628-maximum-product-of-three-numbers
1979-find-greatest-common-divisor-of-array
3014-minimum-number-of-pushes-to-type-word-i
3536-maximum-product-of-two-digits
3658-gcd-of-odd-and-even-sums
3754-concatenate-non-zero-digits-and-multiply-by-sum-i
3867-sum-of-gcd-of-formed-pairs

Backtracking

0046-permutations
0077-combinations

Linked List

0002-add-two-numbers
0021-merge-two-sorted-lists

Recursion

0002-add-two-numbers
0021-merge-two-sorted-lists
0486-predict-the-winner

String

0003-longest-substring-without-repeating-characters
0058-length-of-last-word
0067-add-binary
1189-maximum-number-of-balloons
1358-number-of-substrings-containing-all-three-characters
1967-number-of-strings-that-appear-as-substrings-in-word
3014-minimum-number-of-pushes-to-type-word-i
3517-smallest-palindromic-rearrangement-i
3838-weighted-word-mapping

Sliding Window

0003-longest-substring-without-repeating-characters
1358-number-of-substrings-containing-all-three-characters

Binary Search

0004-median-of-two-sorted-arrays
0035-search-insert-position
0069-sqrtx
3532-path-existence-queries-in-a-graph-i

Divide and Conquer

0004-median-of-two-sorted-arrays

Matrix

0048-rotate-image
3286-find-a-safe-walk-through-a-grid

Tree

0094-binary-tree-inorder-traversal
0104-maximum-depth-of-binary-tree

Depth-First Search

0094-binary-tree-inorder-traversal
0104-maximum-depth-of-binary-tree
2492-minimum-score-of-a-path-between-two-cities

Breadth-First Search

0104-maximum-depth-of-binary-tree
2492-minimum-score-of-a-path-between-two-cities
3286-find-a-safe-walk-through-a-grid

Binary Tree

0094-binary-tree-inorder-traversal
0104-maximum-depth-of-binary-tree

Bit Manipulation

0067-add-binary
0136-single-number

Dynamic Programming

0070-climbing-stairs
0118-pascals-triangle
0120-triangle
0486-predict-the-winner

Stack

0094-binary-tree-inorder-traversal

Database

0175-combine-two-tables
0176-second-highest-salary
0177-nth-highest-salary
0178-rank-scores
0181-employees-earning-more-than-their-managers
0182-duplicate-emails
0183-customers-who-never-order
0184-department-highest-salary
0185-department-top-three-salaries
0196-delete-duplicate-emails
0197-rising-temperature
0262-trips-and-users
0511-game-play-analysis-i
0577-employee-bonus
0584-find-customer-referee
0586-customer-placing-the-largest-number-of-orders
0595-big-countries
0596-classes-with-at-least-5-students
0608-tree-node
0610-triangle-judgement
0619-biggest-single-number
0620-not-boring-movies
1148-article-views-i
1327-list-the-products-ordered-in-a-period
1890-the-latest-login-in-2020
2356-number-of-unique-subjects-taught-by-each-teacher

Prefix Sum

1732-find-the-highest-altitude

Simulation

0067-add-binary
3838-weighted-word-mapping
3867-sum-of-gcd-of-formed-pairs

Counting

1189-maximum-number-of-balloons

Memoization

0070-climbing-stairs

Two Pointers

0011-container-with-most-water
3867-sum-of-gcd-of-formed-pairs

Greedy

0011-container-with-most-water
3014-minimum-number-of-pushes-to-type-word-i

Graph Theory

2492-minimum-score-of-a-path-between-two-cities
3286-find-a-safe-walk-through-a-grid
3532-path-existence-queries-in-a-graph-i

Heap (Priority Queue)

1464-maximum-product-of-two-elements-in-an-array
3286-find-a-safe-walk-through-a-grid

Shortest Path

3286-find-a-safe-walk-through-a-grid

Union-Find

2492-minimum-score-of-a-path-between-two-cities
3532-path-existence-queries-in-a-graph-i

Sorting

0628-maximum-product-of-three-numbers
1288-remove-covered-intervals
1331-rank-transform-of-an-array
1464-maximum-product-of-two-elements-in-an-array
3517-smallest-palindromic-rearrangement-i
3536-maximum-product-of-two-digits
3867-sum-of-gcd-of-formed-pairs

Enumeration

1291-sequential-digits

Number Theory

1979-find-greatest-common-divisor-of-array
3658-gcd-of-odd-and-even-sums
3867-sum-of-gcd-of-formed-pairs

Counting Sort

3517-smallest-palindromic-rearrangement-i

Game Theory

0486-predict-the-winner

About

A repository for learning algorithms.

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages