Skip to content

gajender09/LeetCode-POTD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

642 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode-POTD

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

LeetCode Topics

Array

0033-search-in-rotated-sorted-array
0048-rotate-image
0049-group-anagrams
0081-search-in-rotated-sorted-array-ii
0153-find-minimum-in-rotated-sorted-array
0154-find-minimum-in-rotated-sorted-array-ii
0347-top-k-frequent-elements
0396-rotate-function
0874-walking-robot-simulation
1306-jump-game-iii
1340-jump-game-v
1345-jump-game-iv
1391-check-if-there-is-a-valid-path-in-a-grid
1441-build-an-array-with-stack-operations
1559-detect-cycles-in-2d-grid
1665-minimum-initial-energy-to-finish-tasks
1674-minimum-moves-to-make-array-complementary
1722-minimize-hamming-distance-after-swap-operations
1752-check-if-array-is-sorted-and-rotated
1848-minimum-distance-to-the-target-element
1855-maximum-distance-between-a-pair-of-values
1861-rotating-the-box
1914-cyclically-rotating-a-grid
2033-minimum-operations-to-make-a-uni-value-grid
2078-two-furthest-houses-with-different-colors
2121-intervals-between-identical-elements
2126-destroying-asteroids
2144-minimum-cost-of-buying-candies-with-discount
2161-partition-array-according-to-given-pivot
2196-create-binary-tree-from-descriptions
2452-words-within-two-edits-of-dictionary
2463-minimum-total-distance-traveled
2515-shortest-distance-to-target-string-in-a-circular-array
2540-minimum-common-value
2553-separate-the-digits-in-an-array
2574-left-and-right-sum-differences
2615-sum-of-distances
2657-find-the-prefix-common-array-of-two-arrays
2751-robot-collisions
2770-maximum-number-of-jumps-to-reach-the-last-index
2784-check-if-array-is-good
3043-find-the-length-of-the-longest-common-prefix
3093-longest-common-suffix-queries
3161-block-placement-queries
3225-maximum-score-from-grid-operations
3300-minimum-element-after-replacement-with-digit-sum
3418-maximum-amount-of-money-robot-can-earn
3464-maximize-the-distance-between-points-on-a-square
3488-closest-equal-element-queries
3559-number-of-ways-to-assign-edge-weights-ii
3629-minimum-jumps-to-reach-end-via-prime-teleportation
3633-earliest-finish-time-for-land-and-water-rides-i
3635-earliest-finish-time-for-land-and-water-rides-ii
3653-xor-after-range-multiplication-queries-i
3655-xor-after-range-multiplication-queries-ii
3660-jump-game-ix
3661-maximum-walls-destroyed-by-robots
3689-maximum-total-subarray-value-i
3691-maximum-total-subarray-value-ii
3740-minimum-distance-between-three-equal-elements-i
3741-minimum-distance-between-three-equal-elements-ii
3742-maximum-path-score-in-a-grid
3761-minimum-absolute-distance-between-mirror-pairs
3838-weighted-word-mapping

Stack

1441-build-an-array-with-stack-operations
2751-robot-collisions

Sorting

0049-group-anagrams
0347-top-k-frequent-elements
1340-jump-game-v
1665-minimum-initial-energy-to-finish-tasks
2033-minimum-operations-to-make-a-uni-value-grid
2126-destroying-asteroids
2144-minimum-cost-of-buying-candies-with-discount
2160-minimum-sum-of-four-digit-number-after-splitting-digits
2463-minimum-total-distance-traveled
2751-robot-collisions
2784-check-if-array-is-good
3464-maximize-the-distance-between-points-on-a-square
3633-earliest-finish-time-for-land-and-water-rides-i
3635-earliest-finish-time-for-land-and-water-rides-ii
3661-maximum-walls-destroyed-by-robots

Simulation

0258-add-digits
0657-robot-return-to-origin
0874-walking-robot-simulation
1441-build-an-array-with-stack-operations
1914-cyclically-rotating-a-grid
2069-walking-robot-simulation-ii
2075-decode-the-slanted-ciphertext
2161-partition-array-according-to-given-pivot
2180-count-integers-with-even-digit-sum
2553-separate-the-digits-in-an-array
2751-robot-collisions
3653-xor-after-range-multiplication-queries-i
3838-weighted-word-mapping

Dynamic Programming

0396-rotate-function
0788-rotated-digits
1320-minimum-distance-to-type-a-word-using-two-fingers
1340-jump-game-v
1483-kth-ancestor-of-a-tree-node
1871-jump-game-vii
2463-minimum-total-distance-traveled
2770-maximum-number-of-jumps-to-reach-the-last-index
3225-maximum-score-from-grid-operations
3418-maximum-amount-of-money-robot-can-earn
3559-number-of-ways-to-assign-edge-weights-ii
3660-jump-game-ix
3661-maximum-walls-destroyed-by-robots
3742-maximum-path-score-in-a-grid
3751-total-waviness-of-numbers-in-range-i
3753-total-waviness-of-numbers-in-range-ii

Matrix

0048-rotate-image
1391-check-if-there-is-a-valid-path-in-a-grid
1559-detect-cycles-in-2d-grid
1861-rotating-the-box
1914-cyclically-rotating-a-grid
2033-minimum-operations-to-make-a-uni-value-grid
3225-maximum-score-from-grid-operations
3418-maximum-amount-of-money-robot-can-earn
3742-maximum-path-score-in-a-grid

Binary Search

0033-search-in-rotated-sorted-array
0081-search-in-rotated-sorted-array-ii
0153-find-minimum-in-rotated-sorted-array
0154-find-minimum-in-rotated-sorted-array-ii
1483-kth-ancestor-of-a-tree-node
1855-maximum-distance-between-a-pair-of-values
2540-minimum-common-value
3161-block-placement-queries
3464-maximize-the-distance-between-points-on-a-square
3488-closest-equal-element-queries
3633-earliest-finish-time-for-land-and-water-rides-i
3635-earliest-finish-time-for-land-and-water-rides-ii
3661-maximum-walls-destroyed-by-robots

String

0006-zigzag-conversion
0049-group-anagrams
0205-isomorphic-strings
0657-robot-return-to-origin
0796-rotate-string
1320-minimum-distance-to-type-a-word-using-two-fingers
1871-jump-game-vii
2075-decode-the-slanted-ciphertext
2452-words-within-two-edits-of-dictionary
2515-shortest-distance-to-target-string-in-a-circular-array
2833-furthest-point-from-origin
3043-find-the-length-of-the-longest-common-prefix
3093-longest-common-suffix-queries
3120-count-the-number-of-special-characters-i
3121-count-the-number-of-special-characters-ii
3838-weighted-word-mapping

Hash Table

0049-group-anagrams
0202-happy-number
0205-isomorphic-strings
0347-top-k-frequent-elements
0874-walking-robot-simulation
1345-jump-game-iv
1674-minimum-moves-to-make-array-complementary
2121-intervals-between-identical-elements
2196-create-binary-tree-from-descriptions
2540-minimum-common-value
2615-sum-of-distances
2657-find-the-prefix-common-array-of-two-arrays
2784-check-if-array-is-good
3043-find-the-length-of-the-longest-common-prefix
3120-count-the-number-of-special-characters-i
3121-count-the-number-of-special-characters-ii
3488-closest-equal-element-queries
3629-minimum-jumps-to-reach-end-via-prime-teleportation
3740-minimum-distance-between-three-equal-elements-i
3741-minimum-distance-between-three-equal-elements-ii
3761-minimum-absolute-distance-between-mirror-pairs

Design

1483-kth-ancestor-of-a-tree-node
2069-walking-robot-simulation-ii

Divide and Conquer

0347-top-k-frequent-elements
3653-xor-after-range-multiplication-queries-i
3655-xor-after-range-multiplication-queries-ii

Math

0048-rotate-image
0202-happy-number
0258-add-digits
0396-rotate-function
0788-rotated-digits
2033-minimum-operations-to-make-a-uni-value-grid
2160-minimum-sum-of-four-digit-number-after-splitting-digits
2180-count-integers-with-even-digit-sum
2544-alternating-digit-sum
3300-minimum-element-after-replacement-with-digit-sum
3464-maximize-the-distance-between-points-on-a-square
3558-number-of-ways-to-assign-edge-weights-i
3559-number-of-ways-to-assign-edge-weights-ii
3629-minimum-jumps-to-reach-end-via-prime-teleportation
3751-total-waviness-of-numbers-in-range-i
3753-total-waviness-of-numbers-in-range-ii
3761-minimum-absolute-distance-between-mirror-pairs
3783-mirror-distance-of-an-integer

Two Pointers

0061-rotate-list
0202-happy-number
1855-maximum-distance-between-a-pair-of-values
1861-rotating-the-box
2161-partition-array-according-to-given-pivot
2540-minimum-common-value
3633-earliest-finish-time-for-land-and-water-rides-i
3635-earliest-finish-time-for-land-and-water-rides-ii

Greedy

1665-minimum-initial-energy-to-finish-tasks
2078-two-furthest-houses-with-different-colors
2126-destroying-asteroids
2144-minimum-cost-of-buying-candies-with-discount
2160-minimum-sum-of-four-digit-number-after-splitting-digits
3633-earliest-finish-time-for-land-and-water-rides-i
3635-earliest-finish-time-for-land-and-water-rides-ii
3689-maximum-total-subarray-value-i
3691-maximum-total-subarray-value-ii

Depth-First Search

1306-jump-game-iii
1391-check-if-there-is-a-valid-path-in-a-grid
1483-kth-ancestor-of-a-tree-node
1559-detect-cycles-in-2d-grid
1722-minimize-hamming-distance-after-swap-operations
3558-number-of-ways-to-assign-edge-weights-i
3559-number-of-ways-to-assign-edge-weights-ii

Union-Find

1391-check-if-there-is-a-valid-path-in-a-grid
1559-detect-cycles-in-2d-grid
1722-minimize-hamming-distance-after-swap-operations

Trie

2452-words-within-two-edits-of-dictionary
3043-find-the-length-of-the-longest-common-prefix
3093-longest-common-suffix-queries

Prefix Sum

1674-minimum-moves-to-make-array-complementary
1871-jump-game-vii
2121-intervals-between-identical-elements
2574-left-and-right-sum-differences
2615-sum-of-distances
3225-maximum-score-from-grid-operations

Counting

0347-top-k-frequent-elements
2833-furthest-point-from-origin

Geometry

3464-maximize-the-distance-between-points-on-a-square

Breadth-First Search

1306-jump-game-iii
1345-jump-game-iv
1391-check-if-there-is-a-valid-path-in-a-grid
1483-kth-ancestor-of-a-tree-node
1559-detect-cycles-in-2d-grid
3629-minimum-jumps-to-reach-end-via-prime-teleportation

String Matching

0796-rotate-string

Linked List

0061-rotate-list

Number Theory

0258-add-digits
3629-minimum-jumps-to-reach-end-via-prime-teleportation

Heap (Priority Queue)

0347-top-k-frequent-elements
3691-maximum-total-subarray-value-ii

Bucket Sort

0347-top-k-frequent-elements

Quickselect

0347-top-k-frequent-elements

Bit Manipulation

1483-kth-ancestor-of-a-tree-node
2657-find-the-prefix-common-array-of-two-arrays
3559-number-of-ways-to-assign-edge-weights-ii

Sliding Window

1871-jump-game-vii

Binary Indexed Tree

3161-block-placement-queries

Segment Tree

3161-block-placement-queries
3691-maximum-total-subarray-value-ii

Enumeration

3751-total-waviness-of-numbers-in-range-i

Tree

1483-kth-ancestor-of-a-tree-node
2196-create-binary-tree-from-descriptions
3558-number-of-ways-to-assign-edge-weights-i
3559-number-of-ways-to-assign-edge-weights-ii

Binary Tree

2196-create-binary-tree-from-descriptions

About

A collection of LeetCode questions to ace the coding interview! - Created using [LeetHub v2](https://github.com/arunbhardwaj/LeetHub-2.0)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages