Skip to content

LeetCode problems solved to demonstrate and track progress

Notifications You must be signed in to change notification settings

trinav0711/LeetCode-problems

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

541 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode-problems

LeetCode problems solved to demonstrate and track progress

LeetCode Topics

Array

0001-two-sum
0011-container-with-most-water
0014-longest-common-prefix
0015-3sum
0026-remove-duplicates-from-sorted-array
0027-remove-element
0036-valid-sudoku
0042-trapping-rain-water
0045-jump-game-ii
0048-rotate-image
0049-group-anagrams
0054-spiral-matrix
0055-jump-game
0056-merge-intervals
0057-insert-interval
0068-text-justification
0073-set-matrix-zeroes
0080-remove-duplicates-from-sorted-array-ii
0088-merge-sorted-array
0121-best-time-to-buy-and-sell-stock
0122-best-time-to-buy-and-sell-stock-ii
0128-longest-consecutive-sequence
0134-gas-station
0135-candy
0136-single-number
0137-single-number-ii
0150-evaluate-reverse-polish-notation
0167-two-sum-ii-input-array-is-sorted
0169-majority-element
0189-rotate-array
0200-number-of-islands
0209-minimum-size-subarray-sum
0219-contains-duplicate-ii
0228-summary-ranges
0238-product-of-array-except-self
0274-h-index
0289-game-of-life
0380-insert-delete-getrandom-o1
0452-minimum-number-of-arrows-to-burst-balloons

Two Pointers

0011-container-with-most-water
0015-3sum
0019-remove-nth-node-from-end-of-list
0026-remove-duplicates-from-sorted-array
0027-remove-element
0028-find-the-index-of-the-first-occurrence-in-a-string
0042-trapping-rain-water
0061-rotate-list
0080-remove-duplicates-from-sorted-array-ii
0082-remove-duplicates-from-sorted-list-ii
0086-partition-list
0088-merge-sorted-array
0125-valid-palindrome
0141-linked-list-cycle
0151-reverse-words-in-a-string
0167-two-sum-ii-input-array-is-sorted
0189-rotate-array
0202-happy-number
0392-is-subsequence

Sorting

0015-3sum
0049-group-anagrams
0056-merge-intervals
0088-merge-sorted-array
0169-majority-element
0242-valid-anagram
0274-h-index
0452-minimum-number-of-arrows-to-burst-balloons

Hash Table

0001-two-sum
0003-longest-substring-without-repeating-characters
0012-integer-to-roman
0013-roman-to-integer
0030-substring-with-concatenation-of-all-words
0036-valid-sudoku
0049-group-anagrams
0073-set-matrix-zeroes
0076-minimum-window-substring
0128-longest-consecutive-sequence
0138-copy-list-with-random-pointer
0141-linked-list-cycle
0146-lru-cache
0169-majority-element
0202-happy-number
0205-isomorphic-strings
0219-contains-duplicate-ii
0242-valid-anagram
0290-word-pattern
0380-insert-delete-getrandom-o1
0383-ransom-note

Divide and Conquer

0169-majority-element
0190-reverse-bits
0191-number-of-1-bits

Counting

0169-majority-element
0383-ransom-note

Math

0002-add-two-numbers
0009-palindrome-number
0012-integer-to-roman
0013-roman-to-integer
0048-rotate-image
0067-add-binary
0150-evaluate-reverse-polish-notation
0189-rotate-array
0202-happy-number
0380-insert-delete-getrandom-o1

Dynamic Programming

0042-trapping-rain-water
0045-jump-game-ii
0055-jump-game
0121-best-time-to-buy-and-sell-stock
0122-best-time-to-buy-and-sell-stock-ii
0392-is-subsequence

Greedy

0011-container-with-most-water
0045-jump-game-ii
0055-jump-game
0122-best-time-to-buy-and-sell-stock-ii
0134-gas-station
0135-candy
0452-minimum-number-of-arrows-to-burst-balloons

Counting Sort

0274-h-index

Design

0146-lru-cache
0155-min-stack
0380-insert-delete-getrandom-o1

Randomized

0380-insert-delete-getrandom-o1

Prefix Sum

0209-minimum-size-subarray-sum
0238-product-of-array-except-self

String

0003-longest-substring-without-repeating-characters
0006-zigzag-conversion
0012-integer-to-roman
0013-roman-to-integer
0014-longest-common-prefix
0020-valid-parentheses
0028-find-the-index-of-the-first-occurrence-in-a-string
0030-substring-with-concatenation-of-all-words
0049-group-anagrams
0058-length-of-last-word
0067-add-binary
0068-text-justification
0071-simplify-path
0076-minimum-window-substring
0125-valid-palindrome
0151-reverse-words-in-a-string
0205-isomorphic-strings
0242-valid-anagram
0290-word-pattern
0383-ransom-note
0392-is-subsequence

Trie

0014-longest-common-prefix

String Matching

0028-find-the-index-of-the-first-occurrence-in-a-string

Simulation

0054-spiral-matrix
0067-add-binary
0068-text-justification
0289-game-of-life

Stack

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

Monotonic Stack

0042-trapping-rain-water

Binary Search

0167-two-sum-ii-input-array-is-sorted
0209-minimum-size-subarray-sum

Sliding Window

0003-longest-substring-without-repeating-characters
0030-substring-with-concatenation-of-all-words
0076-minimum-window-substring
0209-minimum-size-subarray-sum
0219-contains-duplicate-ii

Matrix

0036-valid-sudoku
0048-rotate-image
0054-spiral-matrix
0073-set-matrix-zeroes
0200-number-of-islands
0289-game-of-life

Union Find

0128-longest-consecutive-sequence

Database

1757-recyclable-and-low-fat-products

Linked List

0002-add-two-numbers
0019-remove-nth-node-from-end-of-list
0021-merge-two-sorted-lists
0025-reverse-nodes-in-k-group
0061-rotate-list
0082-remove-duplicates-from-sorted-list-ii
0086-partition-list
0092-reverse-linked-list-ii
0138-copy-list-with-random-pointer
0141-linked-list-cycle
0146-lru-cache

Recursion

0002-add-two-numbers
0021-merge-two-sorted-lists
0025-reverse-nodes-in-k-group

Tree

0098-validate-binary-search-tree
0100-same-tree
0101-symmetric-tree
0102-binary-tree-level-order-traversal
0104-maximum-depth-of-binary-tree
0199-binary-tree-right-side-view
0226-invert-binary-tree
0230-kth-smallest-element-in-a-bst
0530-minimum-absolute-difference-in-bst
0637-average-of-levels-in-binary-tree

Depth-First Search

0098-validate-binary-search-tree
0100-same-tree
0101-symmetric-tree
0104-maximum-depth-of-binary-tree
0199-binary-tree-right-side-view
0200-number-of-islands
0226-invert-binary-tree
0230-kth-smallest-element-in-a-bst
0530-minimum-absolute-difference-in-bst
0637-average-of-levels-in-binary-tree

Breadth-First Search

0100-same-tree
0101-symmetric-tree
0102-binary-tree-level-order-traversal
0104-maximum-depth-of-binary-tree
0199-binary-tree-right-side-view
0200-number-of-islands
0226-invert-binary-tree
0530-minimum-absolute-difference-in-bst
0637-average-of-levels-in-binary-tree

Binary Tree

0098-validate-binary-search-tree
0100-same-tree
0101-symmetric-tree
0102-binary-tree-level-order-traversal
0104-maximum-depth-of-binary-tree
0199-binary-tree-right-side-view
0226-invert-binary-tree
0230-kth-smallest-element-in-a-bst
0530-minimum-absolute-difference-in-bst
0637-average-of-levels-in-binary-tree

Binary Search Tree

0098-validate-binary-search-tree
0230-kth-smallest-element-in-a-bst
0530-minimum-absolute-difference-in-bst

Union-Find

0200-number-of-islands

Doubly-Linked List

0146-lru-cache

Bit Manipulation

0067-add-binary
0136-single-number
0137-single-number-ii
0190-reverse-bits
0191-number-of-1-bits

About

LeetCode problems solved to demonstrate and track progress

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages