Skip to content

Muskan-Seth03/leetcode_practice_questions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

leetcode_practice_questions

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

LeetCode Topics

Array

0031-next-permutation
0035-search-insert-position
0046-permutations
0048-rotate-image
0049-group-anagrams
0053-maximum-subarray
0054-spiral-matrix
0056-merge-intervals
0073-set-matrix-zeroes
0121-best-time-to-buy-and-sell-stock
0122-best-time-to-buy-and-sell-stock-ii
0128-longest-consecutive-sequence
0130-surrounded-regions
0169-majority-element
0198-house-robber
0200-number-of-islands
0215-kth-largest-element-in-an-array
0347-top-k-frequent-elements
0414-third-maximum-number
0463-island-perimeter
0542-01-matrix
0621-task-scheduler
0692-top-k-frequent-words
0695-max-area-of-island
0733-flood-fill
0747-min-cost-climbing-stairs
0792-binary-search
1036-rotting-oranges
1073-number-of-enclaves
1104-coloring-a-border
1171-shortest-path-in-binary-matrix
1353-find-resultant-array-after-removing-anagrams
1741-sort-array-by-increasing-frequency
1876-map-of-highest-peak
2015-determine-whether-matrix-can-be-obtained-by-rotation
2035-count-sub-islands
2113-find-the-kth-largest-integer-in-the-array
2206-detonate-the-maximum-bombs
2271-rearrange-array-elements-by-sign
2308-divide-array-into-equal-pairs
2312-most-frequent-number-following-key-in-an-array
2378-sender-with-largest-word-count
2421-maximum-number-of-pairs-in-array
2483-task-scheduler-ii
2486-most-frequent-even-element
2502-sort-the-people
2594-count-pairs-of-similar-strings
2836-neither-minimum-nor-maximum
2876-number-of-employees-who-met-the-target
3331-minimum-operations-to-exceed-threshold-value-i
3347-distribute-elements-into-two-arrays-i

Divide and Conquer

0053-maximum-subarray
0169-majority-element
0215-kth-largest-element-in-an-array
0347-top-k-frequent-elements
2113-find-the-kth-largest-integer-in-the-array

Dynamic Programming

0005-longest-palindromic-substring
0053-maximum-subarray
0070-climbing-stairs
0115-distinct-subsequences
0121-best-time-to-buy-and-sell-stock
0122-best-time-to-buy-and-sell-stock-ii
0198-house-robber
0516-longest-palindromic-subsequence
0542-01-matrix
0583-delete-operation-for-two-strings
0647-palindromic-substrings
0747-min-cost-climbing-stairs
1008-binary-tree-cameras
1013-fibonacci-number
1170-shortest-common-supersequence
1236-n-th-tribonacci-number
1250-longest-common-subsequence
1437-minimum-insertion-steps-to-make-a-string-palindrome
1456-find-the-city-with-the-smallest-number-of-neighbors-at-a-threshold-distance

Two Pointers

0005-longest-palindromic-substring
0031-next-permutation
0647-palindromic-substrings
1356-minimum-number-of-moves-to-make-palindrome
2271-rearrange-array-elements-by-sign

Simulation

0054-spiral-matrix
0657-robot-return-to-origin
2239-execution-of-all-suffix-instructions-staying-in-a-grid
2271-rearrange-array-elements-by-sign
2483-task-scheduler-ii
3347-distribute-elements-into-two-arrays-i

Backtracking

0046-permutations
0813-all-paths-from-source-to-target

Greedy

0122-best-time-to-buy-and-sell-stock-ii
0621-task-scheduler
1356-minimum-number-of-moves-to-make-palindrome

Tree

0617-merge-two-binary-trees
0789-kth-largest-element-in-a-stream
0998-check-completeness-of-a-binary-tree
1008-binary-tree-cameras

Depth-First Search

0130-surrounded-regions
0200-number-of-islands
0207-course-schedule
0210-course-schedule-ii
0463-island-perimeter
0547-number-of-provinces
0617-merge-two-binary-trees
0695-max-area-of-island
0733-flood-fill
0813-all-paths-from-source-to-target
0820-find-eventual-safe-states
1008-binary-tree-cameras
1073-number-of-enclaves
1104-coloring-a-border
2035-count-sub-islands
2206-detonate-the-maximum-bombs

Binary Tree

0617-merge-two-binary-trees
0789-kth-largest-element-in-a-stream
0998-check-completeness-of-a-binary-tree
1008-binary-tree-cameras

Hash Table

0012-integer-to-roman
0013-roman-to-integer
0049-group-anagrams
0073-set-matrix-zeroes
0127-word-ladder
0128-longest-consecutive-sequence
0169-majority-element
0205-isomorphic-strings
0242-valid-anagram
0290-word-pattern
0347-top-k-frequent-elements
0387-first-unique-character-in-a-string
0433-minimum-genetic-mutation
0451-sort-characters-by-frequency
0621-task-scheduler
0692-top-k-frequent-words
1264-maximum-number-of-words-you-can-type
1353-find-resultant-array-after-removing-anagrams
1741-sort-array-by-increasing-frequency
1890-sum-of-beauty-of-all-substrings
1960-check-if-the-sentence-is-pangram
2308-divide-array-into-equal-pairs
2312-most-frequent-number-following-key-in-an-array
2378-sender-with-largest-word-count
2421-maximum-number-of-pairs-in-array
2427-first-letter-to-appear-twice
2483-task-scheduler-ii
2486-most-frequent-even-element
2502-sort-the-people
2594-count-pairs-of-similar-strings

Union Find

0128-longest-consecutive-sequence
0130-surrounded-regions
0200-number-of-islands
0547-number-of-provinces
0695-max-area-of-island
1073-number-of-enclaves
2035-count-sub-islands

Matrix

0048-rotate-image
0054-spiral-matrix
0073-set-matrix-zeroes
0130-surrounded-regions
0200-number-of-islands
0463-island-perimeter
0542-01-matrix
0695-max-area-of-island
0733-flood-fill
1036-rotting-oranges
1073-number-of-enclaves
1104-coloring-a-border
1171-shortest-path-in-binary-matrix
1876-map-of-highest-peak
2015-determine-whether-matrix-can-be-obtained-by-rotation
2035-count-sub-islands

Math

0012-integer-to-roman
0013-roman-to-integer
0048-rotate-image
0070-climbing-stairs
1013-fibonacci-number
1236-n-th-tribonacci-number
2206-detonate-the-maximum-bombs

Recursion

1013-fibonacci-number

Memoization

0070-climbing-stairs
1013-fibonacci-number
1236-n-th-tribonacci-number

Binary Search

0035-search-insert-position
0278-first-bad-version
0374-guess-number-higher-or-lower
0792-binary-search

Interactive

0278-first-bad-version
0374-guess-number-higher-or-lower

Breadth-First Search

0127-word-ladder
0130-surrounded-regions
0200-number-of-islands
0207-course-schedule
0210-course-schedule-ii
0433-minimum-genetic-mutation
0463-island-perimeter
0542-01-matrix
0547-number-of-provinces
0617-merge-two-binary-trees
0695-max-area-of-island
0733-flood-fill
0813-all-paths-from-source-to-target
0820-find-eventual-safe-states
0998-check-completeness-of-a-binary-tree
1036-rotting-oranges
1073-number-of-enclaves
1104-coloring-a-border
1171-shortest-path-in-binary-matrix
1876-map-of-highest-peak
2035-count-sub-islands
2206-detonate-the-maximum-bombs

Sorting

0049-group-anagrams
0056-merge-intervals
0169-majority-element
0215-kth-largest-element-in-an-array
0242-valid-anagram
0347-top-k-frequent-elements
0414-third-maximum-number
0451-sort-characters-by-frequency
0621-task-scheduler
0692-top-k-frequent-words
1353-find-resultant-array-after-removing-anagrams
1741-sort-array-by-increasing-frequency
2113-find-the-kth-largest-integer-in-the-array
2502-sort-the-people
2836-neither-minimum-nor-maximum

Graph

0207-course-schedule
0210-course-schedule-ii
0547-number-of-provinces
0813-all-paths-from-source-to-target
0820-find-eventual-safe-states
1456-find-the-city-with-the-smallest-number-of-neighbors-at-a-threshold-distance
2206-detonate-the-maximum-bombs

Topological Sort

0207-course-schedule
0210-course-schedule-ii
0820-find-eventual-safe-states

String

0005-longest-palindromic-substring
0012-integer-to-roman
0013-roman-to-integer
0014-longest-common-prefix
0049-group-anagrams
0115-distinct-subsequences
0127-word-ladder
0205-isomorphic-strings
0242-valid-anagram
0290-word-pattern
0387-first-unique-character-in-a-string
0433-minimum-genetic-mutation
0451-sort-characters-by-frequency
0516-longest-palindromic-subsequence
0583-delete-operation-for-two-strings
0647-palindromic-substrings
0657-robot-return-to-origin
0692-top-k-frequent-words
0812-rotate-string
1078-remove-outermost-parentheses
1170-shortest-common-supersequence
1250-longest-common-subsequence
1264-maximum-number-of-words-you-can-type
1353-find-resultant-array-after-removing-anagrams
1356-minimum-number-of-moves-to-make-palindrome
1437-minimum-insertion-steps-to-make-a-string-palindrome
1542-consecutive-characters
1737-maximum-nesting-depth-of-the-parentheses
1890-sum-of-beauty-of-all-substrings
1910-check-if-binary-string-has-at-most-one-segment-of-ones
1960-check-if-the-sentence-is-pangram
1999-longer-contiguous-segments-of-ones-than-zeros
2113-find-the-kth-largest-integer-in-the-array
2239-execution-of-all-suffix-instructions-staying-in-a-grid
2365-percentage-of-letter-in-string
2378-sender-with-largest-word-count
2427-first-letter-to-appear-twice
2502-sort-the-people
2594-count-pairs-of-similar-strings
3019-furthest-point-from-origin

Counting

0169-majority-element
0347-top-k-frequent-elements
0387-first-unique-character-in-a-string
0451-sort-characters-by-frequency
0621-task-scheduler
0692-top-k-frequent-words
1890-sum-of-beauty-of-all-substrings
2308-divide-array-into-equal-pairs
2312-most-frequent-number-following-key-in-an-array
2378-sender-with-largest-word-count
2421-maximum-number-of-pairs-in-array
2427-first-letter-to-appear-twice
2486-most-frequent-even-element
2594-count-pairs-of-similar-strings
3019-furthest-point-from-origin

Geometry

2206-detonate-the-maximum-bombs

Stack

0225-implement-stack-using-queues
1078-remove-outermost-parentheses
1737-maximum-nesting-depth-of-the-parentheses

Design

0225-implement-stack-using-queues
0789-kth-largest-element-in-a-stream

Queue

0225-implement-stack-using-queues
0387-first-unique-character-in-a-string

Shortest Path

1456-find-the-city-with-the-smallest-number-of-neighbors-at-a-threshold-distance

Trie

0014-longest-common-prefix
0692-top-k-frequent-words

String Matching

0812-rotate-string

Heap (Priority Queue)

0215-kth-largest-element-in-an-array
0347-top-k-frequent-elements
0451-sort-characters-by-frequency
0621-task-scheduler
0692-top-k-frequent-words
0789-kth-largest-element-in-a-stream
2113-find-the-kth-largest-integer-in-the-array

Bucket Sort

0347-top-k-frequent-elements
0451-sort-characters-by-frequency
0692-top-k-frequent-words

Bit Manipulation

2308-divide-array-into-equal-pairs
2427-first-letter-to-appear-twice
2594-count-pairs-of-similar-strings

Quickselect

0215-kth-largest-element-in-an-array
0347-top-k-frequent-elements
2113-find-the-kth-largest-integer-in-the-array

Binary Search Tree

0789-kth-largest-element-in-a-stream

Data Stream

0789-kth-largest-element-in-a-stream

Binary Indexed Tree

1356-minimum-number-of-moves-to-make-palindrome

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages