Skip to content

Pranjal2506/LeetCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

442 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A collection of LeetCode questions to ace the coding interview! - Created using LeetHub v2

LeetCode Topics

Linked List

0024-swap-nodes-in-pairs
0114-flatten-binary-tree-to-linked-list
0203-remove-linked-list-elements
0206-reverse-linked-list
0234-palindrome-linked-list
0528-swapping-nodes-in-a-linked-list

Stack

0094-binary-tree-inorder-traversal
0114-flatten-binary-tree-to-linked-list
0144-binary-tree-preorder-traversal
0145-binary-tree-postorder-traversal
0234-palindrome-linked-list
0496-next-greater-element-i
0503-next-greater-element-ii
1128-remove-all-adjacent-duplicates-in-string

Tree

0094-binary-tree-inorder-traversal
0101-symmetric-tree
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0108-convert-sorted-array-to-binary-search-tree
0110-balanced-binary-tree
0111-minimum-depth-of-binary-tree
0114-flatten-binary-tree-to-linked-list
0144-binary-tree-preorder-traversal
0145-binary-tree-postorder-traversal
0199-binary-tree-right-side-view
0222-count-complete-tree-nodes
0257-binary-tree-paths
0404-sum-of-left-leaves
0515-find-largest-value-in-each-tree-row
0543-diameter-of-binary-tree
0637-average-of-levels-in-binary-tree
1035-cousins-in-binary-tree
1079-sum-of-root-to-leaf-binary-numbers
1254-deepest-leaves-sum

Depth-First Search

0094-binary-tree-inorder-traversal
0101-symmetric-tree
0110-balanced-binary-tree
0111-minimum-depth-of-binary-tree
0114-flatten-binary-tree-to-linked-list
0144-binary-tree-preorder-traversal
0145-binary-tree-postorder-traversal
0199-binary-tree-right-side-view
0257-binary-tree-paths
0404-sum-of-left-leaves
0515-find-largest-value-in-each-tree-row
0543-diameter-of-binary-tree
0637-average-of-levels-in-binary-tree
1035-cousins-in-binary-tree
1079-sum-of-root-to-leaf-binary-numbers
1254-deepest-leaves-sum

Binary Tree

0094-binary-tree-inorder-traversal
0101-symmetric-tree
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0108-convert-sorted-array-to-binary-search-tree
0110-balanced-binary-tree
0111-minimum-depth-of-binary-tree
0114-flatten-binary-tree-to-linked-list
0144-binary-tree-preorder-traversal
0145-binary-tree-postorder-traversal
0199-binary-tree-right-side-view
0222-count-complete-tree-nodes
0257-binary-tree-paths
0404-sum-of-left-leaves
0515-find-largest-value-in-each-tree-row
0543-diameter-of-binary-tree
0637-average-of-levels-in-binary-tree
1035-cousins-in-binary-tree
1079-sum-of-root-to-leaf-binary-numbers
1254-deepest-leaves-sum

Breadth-First Search

0101-symmetric-tree
0111-minimum-depth-of-binary-tree
0199-binary-tree-right-side-view
0404-sum-of-left-leaves
0515-find-largest-value-in-each-tree-row
0637-average-of-levels-in-binary-tree
1035-cousins-in-binary-tree
1254-deepest-leaves-sum

Array

0001-two-sum
0011-container-with-most-water
0033-search-in-rotated-sorted-array
0049-group-anagrams
0053-maximum-subarray
0073-set-matrix-zeroes
0075-sort-colors
0078-subsets
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0108-convert-sorted-array-to-binary-search-tree
0128-longest-consecutive-sequence
0149-max-points-on-a-line
0169-majority-element
0189-rotate-array
0198-house-robber
0217-contains-duplicate
0229-majority-element-ii
0283-move-zeroes
0349-intersection-of-two-arrays
0496-next-greater-element-i
0503-next-greater-element-ii
0506-relative-ranks
0560-subarray-sum-equals-k
0692-top-k-frequent-words
0724-find-pivot-index
0792-binary-search
0882-peak-index-in-a-mountain-array
0890-lemonade-change
0941-sort-array-by-parity
0948-sort-an-array
1127-last-stone-weight
1426-find-n-unique-integers-sum-up-to-zero
2094-remove-stones-to-minimize-the-total
2616-maximal-score-after-applying-k-operations
2756-buy-two-chocolates
3555-final-array-state-after-k-multiplication-operations-i

Divide and Conquer

0053-maximum-subarray
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0108-convert-sorted-array-to-binary-search-tree
0169-majority-element
0948-sort-an-array

Binary Search Tree

0033-search-in-rotated-sorted-array
0108-convert-sorted-array-to-binary-search-tree
0222-count-complete-tree-nodes
0278-first-bad-version
0349-intersection-of-two-arrays
0792-binary-search
0882-peak-index-in-a-mountain-array

String

0013-roman-to-integer
0028-find-the-index-of-the-first-occurrence-in-a-string
0049-group-anagrams
0151-reverse-words-in-a-string
0257-binary-tree-paths
0383-ransom-note
0387-first-unique-character-in-a-string
0392-is-subsequence
0438-find-all-anagrams-in-a-string
0451-sort-characters-by-frequency
0567-permutation-in-string
0692-top-k-frequent-words
1128-remove-all-adjacent-duplicates-in-string
3195-separate-black-and-white-balls
3396-valid-word

Hash Table

0001-two-sum
0013-roman-to-integer
0049-group-anagrams
0073-set-matrix-zeroes
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0128-longest-consecutive-sequence
0149-max-points-on-a-line
0169-majority-element
0217-contains-duplicate
0229-majority-element-ii
0349-intersection-of-two-arrays
0383-ransom-note
0387-first-unique-character-in-a-string
0438-find-all-anagrams-in-a-string
0451-sort-characters-by-frequency
0496-next-greater-element-i
0560-subarray-sum-equals-k
0567-permutation-in-string
0692-top-k-frequent-words

Math

0009-palindrome-number
0013-roman-to-integer
0062-unique-paths
0149-max-points-on-a-line
0189-rotate-array
1426-find-n-unique-integers-sum-up-to-zero
1879-maximum-score-from-removing-stones
3555-final-array-state-after-k-multiplication-operations-i

Geometry

0149-max-points-on-a-line

Backtracking

0078-subsets
0257-binary-tree-paths

Sorting

0049-group-anagrams
0075-sort-colors
0169-majority-element
0217-contains-duplicate
0229-majority-element-ii
0295-find-median-from-data-stream
0349-intersection-of-two-arrays
0451-sort-characters-by-frequency
0506-relative-ranks
0692-top-k-frequent-words
0941-sort-array-by-parity
0948-sort-an-array
2756-buy-two-chocolates

Heap (Priority Queue)

0295-find-median-from-data-stream
0451-sort-characters-by-frequency
0506-relative-ranks
0692-top-k-frequent-words
0948-sort-an-array
1127-last-stone-weight
1879-maximum-score-from-removing-stones
2094-remove-stones-to-minimize-the-total
2616-maximal-score-after-applying-k-operations
3555-final-array-state-after-k-multiplication-operations-i

Bit Manipulation

0078-subsets
0222-count-complete-tree-nodes

Two Pointers

0011-container-with-most-water
0028-find-the-index-of-the-first-occurrence-in-a-string
0075-sort-colors
0151-reverse-words-in-a-string
0189-rotate-array
0234-palindrome-linked-list
0283-move-zeroes
0295-find-median-from-data-stream
0349-intersection-of-two-arrays
0392-is-subsequence
0528-swapping-nodes-in-a-linked-list
0567-permutation-in-string
0941-sort-array-by-parity
3195-separate-black-and-white-balls

Design

0295-find-median-from-data-stream

Data Stream

0295-find-median-from-data-stream

Counting

0169-majority-element
0229-majority-element-ii
0383-ransom-note
0387-first-unique-character-in-a-string
0451-sort-characters-by-frequency
0692-top-k-frequent-words

Sliding Window

0438-find-all-anagrams-in-a-string
0567-permutation-in-string

Union Find

0128-longest-consecutive-sequence

Greedy

0011-container-with-most-water
0890-lemonade-change
1879-maximum-score-from-removing-stones
2094-remove-stones-to-minimize-the-total
2616-maximal-score-after-applying-k-operations
2756-buy-two-chocolates
3195-separate-black-and-white-balls

Interactive

0278-first-bad-version

Dynamic Programming

0053-maximum-subarray
0062-unique-paths
0198-house-robber
0392-is-subsequence

Combinatorics

0062-unique-paths

Prefix Sum

0560-subarray-sum-equals-k
0724-find-pivot-index

Queue

0387-first-unique-character-in-a-string

String Matching

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

Recursion

0024-swap-nodes-in-pairs
0203-remove-linked-list-elements
0206-reverse-linked-list
0234-palindrome-linked-list

Monotonic Stack

0496-next-greater-element-i
0503-next-greater-element-ii

Trie

0692-top-k-frequent-words

Bucket Sort

0451-sort-characters-by-frequency
0692-top-k-frequent-words
0948-sort-an-array

Simulation

3555-final-array-state-after-k-multiplication-operations-i

Matrix

0073-set-matrix-zeroes

Merge Sort

0948-sort-an-array

Radix Sort

0948-sort-an-array

Counting Sort

0948-sort-an-array

Database

0176-second-highest-salary

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages