Skip to content

Latest commit

 

History

225 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

leetcode-and-stuff

Just contains solutions to problems from LeetCode (and other such stuff).

  1. Solutions to easy/medium/hard(?) problems from LeetCode
  2. Code from programming competitions, etc.
  3. Experiments that aren't complete programs, but I want to add here anyway

LeetCode Topics

Math

0002-add-two-numbers
0007-reverse-integer
0009-palindrome-number
0013-roman-to-integer
0029-divide-two-integers
0043-multiply-strings
0048-rotate-image
0050-powx-n
0066-plus-one
0150-evaluate-reverse-polish-notation
0202-happy-number
1146-greatest-common-divisor-of-strings
2160-minimum-operations-to-make-a-uni-value-grid

Linked List

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

Recursion

0002-add-two-numbers
0050-powx-n
0206-reverse-linked-list

Bit Manipulation

0029-divide-two-integers

Array

0001-two-sum
0004-median-of-two-sorted-arrays
0011-container-with-most-water
0015-3sum
0036-valid-sudoku
0042-trapping-rain-water
0048-rotate-image
0049-group-anagrams
0051-n-queens
0054-spiral-matrix
0055-jump-game
0066-plus-one
0073-set-matrix-zeroes
0074-search-a-2d-matrix
0084-largest-rectangle-in-histogram
0121-best-time-to-buy-and-sell-stock
0128-longest-consecutive-sequence
0150-evaluate-reverse-polish-notation
0167-two-sum-ii-input-array-is-sorted
0217-contains-duplicate
0238-product-of-array-except-self
0239-sliding-window-maximum
0347-top-k-frequent-elements
0739-daily-temperatures
0792-binary-search
0853-car-fleet
1468-check-if-n-and-its-double-exist
2013-detect-squares
2160-minimum-operations-to-make-a-uni-value-grid

Hash Table

0001-two-sum
0003-longest-substring-without-repeating-characters
0013-roman-to-integer
0036-valid-sudoku
0049-group-anagrams
0073-set-matrix-zeroes
0076-minimum-window-substring
0128-longest-consecutive-sequence
0202-happy-number
0217-contains-duplicate
0242-valid-anagram
0347-top-k-frequent-elements
0424-longest-repeating-character-replacement
0567-permutation-in-string
1468-check-if-n-and-its-double-exist
2013-detect-squares

Sorting

0015-3sum
0049-group-anagrams
0217-contains-duplicate
0242-valid-anagram
0347-top-k-frequent-elements
0853-car-fleet
1468-check-if-n-and-its-double-exist
2160-minimum-operations-to-make-a-uni-value-grid

Matrix

0036-valid-sudoku
0048-rotate-image
0054-spiral-matrix
0073-set-matrix-zeroes
0074-search-a-2d-matrix
2160-minimum-operations-to-make-a-uni-value-grid

String

0003-longest-substring-without-repeating-characters
0005-longest-palindromic-substring
0013-roman-to-integer
0020-valid-parentheses
0022-generate-parentheses
0043-multiply-strings
0049-group-anagrams
0058-length-of-last-word
0076-minimum-window-substring
0242-valid-anagram
0424-longest-repeating-character-replacement
0567-permutation-in-string
0647-palindromic-substrings
1146-greatest-common-divisor-of-strings

Stack

0020-valid-parentheses
0042-trapping-rain-water
0084-largest-rectangle-in-histogram
0150-evaluate-reverse-polish-notation
0155-min-stack
0739-daily-temperatures
0853-car-fleet

Sliding Window

0003-longest-substring-without-repeating-characters
0076-minimum-window-substring
0239-sliding-window-maximum
0424-longest-repeating-character-replacement
0567-permutation-in-string

Divide and Conquer

0004-median-of-two-sorted-arrays
0347-top-k-frequent-elements

Heap (Priority Queue)

0239-sliding-window-maximum
0347-top-k-frequent-elements

Bucket Sort

0347-top-k-frequent-elements

Counting

0347-top-k-frequent-elements
2013-detect-squares

Quickselect

0347-top-k-frequent-elements

Binary Search

0004-median-of-two-sorted-arrays
0074-search-a-2d-matrix
0167-two-sum-ii-input-array-is-sorted
0792-binary-search
1468-check-if-n-and-its-double-exist

Backtracking

0022-generate-parentheses
0051-n-queens

Two Pointers

0005-longest-palindromic-substring
0011-container-with-most-water
0015-3sum
0042-trapping-rain-water
0167-two-sum-ii-input-array-is-sorted
0202-happy-number
0567-permutation-in-string
0647-palindromic-substrings
1468-check-if-n-and-its-double-exist

Prefix Sum

0238-product-of-array-except-self

Union Find

0128-longest-consecutive-sequence

Design

0155-min-stack
2013-detect-squares

Dynamic Programming

0005-longest-palindromic-substring
0022-generate-parentheses
0042-trapping-rain-water
0055-jump-game
0121-best-time-to-buy-and-sell-stock
0647-palindromic-substrings

Monotonic Stack

0042-trapping-rain-water
0084-largest-rectangle-in-histogram
0739-daily-temperatures
0853-car-fleet

Greedy

0011-container-with-most-water
0055-jump-game

Tree

0104-maximum-depth-of-binary-tree
0226-invert-binary-tree

Depth-First Search

0104-maximum-depth-of-binary-tree
0226-invert-binary-tree

Breadth-First Search

0104-maximum-depth-of-binary-tree
0226-invert-binary-tree

Binary Tree

0104-maximum-depth-of-binary-tree
0226-invert-binary-tree

Queue

0239-sliding-window-maximum

Monotonic Queue

0239-sliding-window-maximum

Simulation

0043-multiply-strings
0054-spiral-matrix

Data Stream

2013-detect-squares

About

LeetCode solutions, programming contest and small sized programs. (Solutions sync to this repo using LeetHub)

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages