Skip to content

PrateekKumar1709/Leetcode

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

Stack

0020-valid-parentheses
0094-binary-tree-inorder-traversal
0144-binary-tree-preorder-traversal
0145-binary-tree-postorder-traversal
0227-basic-calculator-ii
0394-decode-string
0503-next-greater-element-ii
0716-max-stack
1736-build-binary-expression-tree-from-infix-expression
2389-design-a-text-editor
2657-minimum-time-to-complete-all-tasks

Tree

0094-binary-tree-inorder-traversal
0102-binary-tree-level-order-traversal
0103-binary-tree-zigzag-level-order-traversal
0104-maximum-depth-of-binary-tree
0111-minimum-depth-of-binary-tree
0112-path-sum
0124-binary-tree-maximum-path-sum
0144-binary-tree-preorder-traversal
0145-binary-tree-postorder-traversal
0250-count-univalue-subtrees
1736-build-binary-expression-tree-from-infix-expression

Depth-First Search

0079-word-search
0094-binary-tree-inorder-traversal
0104-maximum-depth-of-binary-tree
0111-minimum-depth-of-binary-tree
0112-path-sum
0124-binary-tree-maximum-path-sum
0144-binary-tree-preorder-traversal
0145-binary-tree-postorder-traversal
0210-course-schedule-ii
0250-count-univalue-subtrees
0269-alien-dictionary
0332-reconstruct-itinerary
0399-evaluate-division
0721-accounts-merge
0803-cheapest-flights-within-k-stops
0971-shortest-bridge

Binary Tree

0094-binary-tree-inorder-traversal
0102-binary-tree-level-order-traversal
0103-binary-tree-zigzag-level-order-traversal
0104-maximum-depth-of-binary-tree
0111-minimum-depth-of-binary-tree
0112-path-sum
0124-binary-tree-maximum-path-sum
0144-binary-tree-preorder-traversal
0145-binary-tree-postorder-traversal
0250-count-univalue-subtrees
1736-build-binary-expression-tree-from-infix-expression

Breadth-First Search

0102-binary-tree-level-order-traversal
0103-binary-tree-zigzag-level-order-traversal
0104-maximum-depth-of-binary-tree
0111-minimum-depth-of-binary-tree
0112-path-sum
0127-word-ladder
0210-course-schedule-ii
0269-alien-dictionary
0317-shortest-distance-from-all-buildings
0322-coin-change
0399-evaluate-division
0721-accounts-merge
0803-cheapest-flights-within-k-stops
0971-shortest-bridge
1414-shortest-path-in-a-grid-with-obstacles-elimination
1485-minimum-cost-to-make-at-least-one-valid-path-in-a-grid

Array

0004-median-of-two-sorted-arrays
0026-remove-duplicates-from-sorted-array
0036-valid-sudoku
0049-group-anagrams
0056-merge-intervals
0075-sort-colors
0079-word-search
0088-merge-sorted-array
0121-best-time-to-buy-and-sell-stock
0169-majority-element
0198-house-robber
0269-alien-dictionary
0283-move-zeroes
0300-longest-increasing-subsequence
0317-shortest-distance-from-all-buildings
0322-coin-change
0399-evaluate-division
0503-next-greater-element-ii
0631-design-excel-sum-formula
0632-smallest-range-covering-elements-from-k-lists
0721-accounts-merge
0902-minimum-number-of-refueling-stops
0971-shortest-bridge
1014-k-closest-points-to-origin
1138-grumpy-bookstore-owner
1256-rank-transform-of-an-array
1414-shortest-path-in-a-grid-with-obstacles-elimination
1485-minimum-cost-to-make-at-least-one-valid-path-in-a-grid
2488-divide-intervals-into-minimum-number-of-groups
2604-minimum-operations-to-make-array-equal-ii
2657-minimum-time-to-complete-all-tasks
2727-number-of-senior-citizens

Graph

0210-course-schedule-ii
0269-alien-dictionary
0332-reconstruct-itinerary
0399-evaluate-division
0631-design-excel-sum-formula
0803-cheapest-flights-within-k-stops
1485-minimum-cost-to-make-at-least-one-valid-path-in-a-grid

Heap (Priority Queue)

0632-smallest-range-covering-elements-from-k-lists
0803-cheapest-flights-within-k-stops
0902-minimum-number-of-refueling-stops
1014-k-closest-points-to-origin
1485-minimum-cost-to-make-at-least-one-valid-path-in-a-grid
2488-divide-intervals-into-minimum-number-of-groups

Matrix

0036-valid-sudoku
0079-word-search
0317-shortest-distance-from-all-buildings
0631-design-excel-sum-formula
0971-shortest-bridge
1414-shortest-path-in-a-grid-with-obstacles-elimination
1485-minimum-cost-to-make-at-least-one-valid-path-in-a-grid

Shortest Path

0399-evaluate-division
0803-cheapest-flights-within-k-stops
1485-minimum-cost-to-make-at-least-one-valid-path-in-a-grid

String

0003-longest-substring-without-repeating-characters
0020-valid-parentheses
0022-generate-parentheses
0044-wildcard-matching
0049-group-anagrams
0065-valid-number
0072-edit-distance
0076-minimum-window-substring
0079-word-search
0091-decode-ways
0127-word-ladder
0227-basic-calculator-ii
0269-alien-dictionary
0394-decode-string
0399-evaluate-division
0721-accounts-merge
1736-build-binary-expression-tree-from-infix-expression
2389-design-a-text-editor
2405-minimum-number-of-keypresses
2727-number-of-senior-citizens
3349-maximum-length-substring-with-two-occurrences

Dynamic Programming

0022-generate-parentheses
0044-wildcard-matching
0072-edit-distance
0091-decode-ways
0121-best-time-to-buy-and-sell-stock
0124-binary-tree-maximum-path-sum
0198-house-robber
0300-longest-increasing-subsequence
0322-coin-change
0803-cheapest-flights-within-k-stops
0902-minimum-number-of-refueling-stops

Greedy

0044-wildcard-matching
0632-smallest-range-covering-elements-from-k-lists
0902-minimum-number-of-refueling-stops
2405-minimum-number-of-keypresses
2488-divide-intervals-into-minimum-number-of-groups
2604-minimum-operations-to-make-array-equal-ii
2657-minimum-time-to-complete-all-tasks

Recursion

0021-merge-two-sorted-lists
0044-wildcard-matching
0394-decode-string

Design

0146-lru-cache
0631-design-excel-sum-formula
0716-max-stack
2389-design-a-text-editor

Topological Sort

0210-course-schedule-ii
0269-alien-dictionary
0631-design-excel-sum-formula

Two Pointers

0026-remove-duplicates-from-sorted-array
0075-sort-colors
0088-merge-sorted-array
0283-move-zeroes
0908-middle-of-the-linked-list
2488-divide-intervals-into-minimum-number-of-groups

Sorting

0049-group-anagrams
0056-merge-intervals
0075-sort-colors
0088-merge-sorted-array
0169-majority-element
0632-smallest-range-covering-elements-from-k-lists
0721-accounts-merge
1014-k-closest-points-to-origin
1256-rank-transform-of-an-array
2405-minimum-number-of-keypresses
2488-divide-intervals-into-minimum-number-of-groups
2657-minimum-time-to-complete-all-tasks

Hash Table

0003-longest-substring-without-repeating-characters
0036-valid-sudoku
0049-group-anagrams
0076-minimum-window-substring
0127-word-ladder
0146-lru-cache
0169-majority-element
0632-smallest-range-covering-elements-from-k-lists
0721-accounts-merge
1256-rank-transform-of-an-array
2405-minimum-number-of-keypresses
3349-maximum-length-substring-with-two-occurrences

Divide and Conquer

0004-median-of-two-sorted-arrays
0169-majority-element
1014-k-closest-points-to-origin

Counting

0169-majority-element
2405-minimum-number-of-keypresses

Linked List

0021-merge-two-sorted-lists
0146-lru-cache
0716-max-stack
0908-middle-of-the-linked-list
2389-design-a-text-editor

Sliding Window

0003-longest-substring-without-repeating-characters
0076-minimum-window-substring
0632-smallest-range-covering-elements-from-k-lists
1138-grumpy-bookstore-owner
3349-maximum-length-substring-with-two-occurrences

Math

0227-basic-calculator-ii
1014-k-closest-points-to-origin
1610-xor-operation-in-an-array
2604-minimum-operations-to-make-array-equal-ii

Bit Manipulation

1610-xor-operation-in-an-array

Backtracking

0022-generate-parentheses
0079-word-search

Prefix Sum

2488-divide-intervals-into-minimum-number-of-groups

Binary Search

0004-median-of-two-sorted-arrays
0300-longest-increasing-subsequence
2657-minimum-time-to-complete-all-tasks

Doubly-Linked List

0146-lru-cache
0716-max-stack
2389-design-a-text-editor

Ordered Set

0716-max-stack

Union Find

0399-evaluate-division
0721-accounts-merge

Simulation

2389-design-a-text-editor

Eulerian Circuit

0332-reconstruct-itinerary

Geometry

1014-k-closest-points-to-origin

Quickselect

1014-k-closest-points-to-origin

Monotonic Stack

0503-next-greater-element-ii

About

Leetcode practice problems and solutions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published