Skip to content

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

Notifications You must be signed in to change notification settings

thushar003/leetcode-and-stuff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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
0066-plus-one
0150-evaluate-reverse-polish-notation
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
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
0049-group-anagrams
0051-n-queens
0066-plus-one
0074-search-a-2d-matrix
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
0347-top-k-frequent-elements
0792-binary-search
1468-check-if-n-and-its-double-exist
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
0128-longest-consecutive-sequence
0217-contains-duplicate
0242-valid-anagram
0347-top-k-frequent-elements
1468-check-if-n-and-its-double-exist

Sorting

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

Matrix

0036-valid-sudoku
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
0049-group-anagrams
0242-valid-anagram
0647-palindromic-substrings
1146-greatest-common-divisor-of-strings

Stack

0020-valid-parentheses
0042-trapping-rain-water
0150-evaluate-reverse-polish-notation
0155-min-stack

Sliding Window

0003-longest-substring-without-repeating-characters

Divide and Conquer

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

Heap (Priority Queue)

0347-top-k-frequent-elements

Bucket Sort

0347-top-k-frequent-elements

Counting

0347-top-k-frequent-elements

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
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

Dynamic Programming

0005-longest-palindromic-substring
0022-generate-parentheses
0042-trapping-rain-water
0647-palindromic-substrings

Monotonic Stack

0042-trapping-rain-water

Greedy

0011-container-with-most-water

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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published