Skip to content

Dhirajsharma2060/Leetcode_practice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

LeetCode Topics

Array

0001-two-sum
0042-trapping-rain-water
0046-permutations
0048-rotate-image
0049-group-anagrams
0054-spiral-matrix
0078-subsets
0121-best-time-to-buy-and-sell-stock
0167-two-sum-ii-input-array-is-sorted
0169-majority-element
0189-rotate-array
0217-contains-duplicate
0228-summary-ranges
0238-product-of-array-except-self
0283-move-zeroes
0494-target-sum
0661-image-smoother
0682-baseball-game
0817-design-hashmap
1019-squares-of-a-sorted-array
1044-find-common-characters
1063-best-sightseeing-pair
1137-height-checker
1570-final-prices-with-a-special-discount-in-a-shop
1886-minimum-limit-of-balls-in-a-bag
1917-maximum-average-pass-ratio
2015-determine-whether-matrix-can-be-obtained-by-rotation
2350-find-closest-number-to-zero
2692-take-gifts-from-the-richest-pile
3194-find-words-containing-character
3252-count-the-number-of-incremovable-subarrays-i
3427-special-array-ii
3534-count-almost-equal-pairs-i
3555-final-array-state-after-k-multiplication-operations-i
3799-unique-3-digit-even-numbers

Binary Search

0167-two-sum-ii-input-array-is-sorted
1886-minimum-limit-of-balls-in-a-bag
3252-count-the-number-of-incremovable-subarrays-i
3427-special-array-ii

String

0005-longest-palindromic-substring
0006-zigzag-conversion
0013-roman-to-integer
0014-longest-common-prefix
0017-letter-combinations-of-a-phone-number
0020-valid-parentheses
0049-group-anagrams
0125-valid-palindrome
0151-reverse-words-in-a-string
0205-isomorphic-strings
0383-ransom-note
0392-is-subsequence
0409-longest-palindrome
0782-jewels-and-stones
1044-find-common-characters
1537-maximum-score-after-splitting-a-string
1894-merge-strings-alternately
3194-find-words-containing-character
3379-score-of-a-string

Hash Table

0001-two-sum
0013-roman-to-integer
0017-letter-combinations-of-a-phone-number
0049-group-anagrams
0169-majority-element
0205-isomorphic-strings
0217-contains-duplicate
0383-ransom-note
0409-longest-palindrome
0782-jewels-and-stones
0817-design-hashmap
1044-find-common-characters
3534-count-almost-equal-pairs-i
3799-unique-3-digit-even-numbers

Greedy

0409-longest-palindrome
1917-maximum-average-pass-ratio

Sorting

0049-group-anagrams
0169-majority-element
0217-contains-duplicate
1019-squares-of-a-sorted-array
1137-height-checker
3534-count-almost-equal-pairs-i

Counting Sort

0169-majority-element
0383-ransom-note
1137-height-checker
3534-count-almost-equal-pairs-i

Prefix Sum

0238-product-of-array-except-self
1537-maximum-score-after-splitting-a-string
3427-special-array-ii

Heap (Priority Queue)

1917-maximum-average-pass-ratio
2692-take-gifts-from-the-richest-pile
3555-final-array-state-after-k-multiplication-operations-i

Simulation

0054-spiral-matrix
0682-baseball-game
2692-take-gifts-from-the-richest-pile
3555-final-array-state-after-k-multiplication-operations-i
3600-find-the-k-th-character-in-string-game-i

Two Pointers

0005-longest-palindromic-substring
0042-trapping-rain-water
0125-valid-palindrome
0151-reverse-words-in-a-string
0167-two-sum-ii-input-array-is-sorted
0189-rotate-array
0283-move-zeroes
0392-is-subsequence
1019-squares-of-a-sorted-array
1894-merge-strings-alternately
3252-count-the-number-of-incremovable-subarrays-i

Dynamic Programming

0005-longest-palindromic-substring
0042-trapping-rain-water
0121-best-time-to-buy-and-sell-stock
0338-counting-bits
0392-is-subsequence
0494-target-sum
1013-fibonacci-number
1063-best-sightseeing-pair

Math

0007-reverse-integer
0013-roman-to-integer
0048-rotate-image
0189-rotate-array
0231-power-of-two
0326-power-of-three
0342-power-of-four
1013-fibonacci-number
3555-final-array-state-after-k-multiplication-operations-i
3600-find-the-k-th-character-in-string-game-i

Enumeration

3252-count-the-number-of-incremovable-subarrays-i
3534-count-almost-equal-pairs-i
3799-unique-3-digit-even-numbers

Stack

0020-valid-parentheses
0042-trapping-rain-water
0682-baseball-game
1570-final-prices-with-a-special-discount-in-a-shop

Monotonic Stack

0042-trapping-rain-water
1570-final-prices-with-a-special-discount-in-a-shop

Linked List

0203-remove-linked-list-elements
0206-reverse-linked-list
0817-design-hashmap

Recursion

0203-remove-linked-list-elements
0206-reverse-linked-list
0231-power-of-two
0326-power-of-three
0342-power-of-four
1013-fibonacci-number
3600-find-the-k-th-character-in-string-game-i
3799-unique-3-digit-even-numbers

Tree

0226-invert-binary-tree
2493-reverse-odd-levels-of-binary-tree

Depth-First Search

0226-invert-binary-tree
2493-reverse-odd-levels-of-binary-tree

Breadth-First Search

0226-invert-binary-tree
2493-reverse-odd-levels-of-binary-tree

Binary Tree

0226-invert-binary-tree
2493-reverse-odd-levels-of-binary-tree

Backtracking

0017-letter-combinations-of-a-phone-number
0046-permutations
0078-subsets
0494-target-sum

Matrix

0048-rotate-image
0054-spiral-matrix
0661-image-smoother
2015-determine-whether-matrix-can-be-obtained-by-rotation

Divide and Conquer

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

Bit Manipulation

0078-subsets
0190-reverse-bits
0191-number-of-1-bits
0231-power-of-two
0338-counting-bits
0342-power-of-four
3600-find-the-k-th-character-in-string-game-i

Trie

0014-longest-common-prefix

Design

0817-design-hashmap

Hash Function

0817-design-hashmap

Memoization

1013-fibonacci-number

Database

0175-combine-two-tables
0178-rank-scores
0181-employees-earning-more-than-their-managers
0182-duplicate-emails
0183-customers-who-never-order
0595-big-countries

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published