Skip to content

kush-singh-04/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

Linked List

0002-add-two-numbers
0019-remove-nth-node-from-end-of-list
0021-merge-two-sorted-lists
0024-swap-nodes-in-pairs
0061-rotate-list
0083-remove-duplicates-from-sorted-list
0086-partition-list
0092-reverse-linked-list-ii
0138-copy-list-with-random-pointer
0141-linked-list-cycle
0142-linked-list-cycle-ii
0143-reorder-list
0148-sort-list
0160-intersection-of-two-linked-lists
0206-reverse-linked-list
0234-palindrome-linked-list
0328-odd-even-linked-list
0528-swapping-nodes-in-a-linked-list
0725-split-linked-list-in-parts
0766-flatten-a-multilevel-doubly-linked-list
2182-find-the-minimum-and-maximum-number-of-nodes-between-critical-points
2411-spiral-matrix-iv

Two Pointers

0019-remove-nth-node-from-end-of-list
0061-rotate-list
0086-partition-list
0141-linked-list-cycle
0142-linked-list-cycle-ii
0143-reorder-list
0148-sort-list
0160-intersection-of-two-linked-lists
0234-palindrome-linked-list
0528-swapping-nodes-in-a-linked-list
1168-duplicate-zeros
2392-successful-pairs-of-spells-and-potions
3437-maximum-total-damage-with-spell-casting

Hash Table

0138-copy-list-with-random-pointer
0141-linked-list-cycle
0142-linked-list-cycle-ii
0160-intersection-of-two-linked-lists
0268-missing-number
0442-find-all-duplicates-in-an-array
0496-next-greater-element-i
1353-find-resultant-array-after-removing-anagrams
1612-avoid-flood-in-the-city
2661-smallest-missing-non-negative-integer-after-operations
3437-maximum-total-damage-with-spell-casting
3592-find-x-sum-of-all-k-long-subarrays-ii
3610-find-x-sum-of-all-k-long-subarrays-i

Array

0033-search-in-rotated-sorted-array
0054-spiral-matrix
0059-spiral-matrix-ii
0081-search-in-rotated-sorted-array-ii
0136-single-number
0153-find-minimum-in-rotated-sorted-array
0268-missing-number
0442-find-all-duplicates-in-an-array
0496-next-greater-element-i
0792-binary-search
0794-swim-in-rising-water
1018-largest-perimeter-triangle
1111-minimum-score-triangulation-of-polygon
1168-duplicate-zeros
1353-find-resultant-array-after-removing-anagrams
1612-avoid-flood-in-the-city
1700-minimum-time-to-make-rope-colorful
1878-check-if-array-is-sorted-and-rotated
2137-final-value-of-variable-after-performing-operations
2324-find-triangular-sum-of-an-array
2343-count-unguarded-cells-in-the-grid
2392-successful-pairs-of-spells-and-potions
2411-spiral-matrix-iv
2661-smallest-missing-non-negative-integer-after-operations
3383-taking-maximum-energy-from-the-mystic-dungeon
3437-maximum-total-damage-with-spell-casting
3592-find-x-sum-of-all-k-long-subarrays-ii
3610-find-x-sum-of-all-k-long-subarrays-i
3612-adjacent-increasing-subarrays-detection-i
3619-adjacent-increasing-subarrays-detection-ii
3620-maximum-number-of-distinct-elements-after-operations
3794-find-the-minimum-amount-of-time-to-brew-potions
3851-find-sum-of-array-product-of-magical-sequences

Matrix

0054-spiral-matrix
0059-spiral-matrix-ii
0794-swim-in-rising-water
2343-count-unguarded-cells-in-the-grid
2411-spiral-matrix-iv

Simulation

0054-spiral-matrix
0059-spiral-matrix-ii
2137-final-value-of-variable-after-performing-operations
2324-find-triangular-sum-of-an-array
2343-count-unguarded-cells-in-the-grid
2411-spiral-matrix-iv
3794-find-the-minimum-amount-of-time-to-brew-potions

Binary Search

0033-search-in-rotated-sorted-array
0081-search-in-rotated-sorted-array-ii
0153-find-minimum-in-rotated-sorted-array
0268-missing-number
0792-binary-search
0794-swim-in-rising-water
1612-avoid-flood-in-the-city
2392-successful-pairs-of-spells-and-potions
3437-maximum-total-damage-with-spell-casting
3619-adjacent-increasing-subarrays-detection-ii

Recursion

0002-add-two-numbers
0021-merge-two-sorted-lists
0024-swap-nodes-in-pairs
0143-reorder-list
0206-reverse-linked-list
0234-palindrome-linked-list

Divide and Conquer

0148-sort-list

Sorting

0148-sort-list
0268-missing-number
1018-largest-perimeter-triangle
1353-find-resultant-array-after-removing-anagrams
2392-successful-pairs-of-spells-and-potions
3437-maximum-total-damage-with-spell-casting
3620-maximum-number-of-distinct-elements-after-operations

Merge Sort

0148-sort-list

Stack

0094-binary-tree-inorder-traversal
0143-reorder-list
0144-binary-tree-preorder-traversal
0145-binary-tree-postorder-traversal
0234-palindrome-linked-list
0496-next-greater-element-i

Math

0002-add-two-numbers
0268-missing-number
1018-largest-perimeter-triangle
2324-find-triangular-sum-of-an-array
2661-smallest-missing-non-negative-integer-after-operations
3676-smallest-number-with-all-set-bits
3851-find-sum-of-array-product-of-magical-sequences

Greedy

1018-largest-perimeter-triangle
1612-avoid-flood-in-the-city
1700-minimum-time-to-make-rope-colorful
2661-smallest-missing-non-negative-integer-after-operations
3620-maximum-number-of-distinct-elements-after-operations

Dynamic Programming

1111-minimum-score-triangulation-of-polygon
1700-minimum-time-to-make-rope-colorful
3233-maximize-the-number-of-partitions-after-operations
3437-maximum-total-damage-with-spell-casting
3851-find-sum-of-array-product-of-magical-sequences

Depth-First Search

0094-binary-tree-inorder-traversal
0100-same-tree
0101-symmetric-tree
0104-maximum-depth-of-binary-tree
0112-path-sum
0144-binary-tree-preorder-traversal
0145-binary-tree-postorder-traversal
0226-invert-binary-tree
0236-lowest-common-ancestor-of-a-binary-tree
0257-binary-tree-paths
0543-diameter-of-binary-tree
0766-flatten-a-multilevel-doubly-linked-list
0794-swim-in-rising-water

Doubly-Linked List

0766-flatten-a-multilevel-doubly-linked-list

Combinatorics

2324-find-triangular-sum-of-an-array
3851-find-sum-of-array-product-of-magical-sequences

Tree

0094-binary-tree-inorder-traversal
0100-same-tree
0101-symmetric-tree
0102-binary-tree-level-order-traversal
0104-maximum-depth-of-binary-tree
0112-path-sum
0144-binary-tree-preorder-traversal
0145-binary-tree-postorder-traversal
0226-invert-binary-tree
0236-lowest-common-ancestor-of-a-binary-tree
0257-binary-tree-paths
0543-diameter-of-binary-tree

Binary Tree

0094-binary-tree-inorder-traversal
0100-same-tree
0101-symmetric-tree
0102-binary-tree-level-order-traversal
0104-maximum-depth-of-binary-tree
0112-path-sum
0144-binary-tree-preorder-traversal
0145-binary-tree-postorder-traversal
0226-invert-binary-tree
0236-lowest-common-ancestor-of-a-binary-tree
0257-binary-tree-paths
0543-diameter-of-binary-tree

Breadth-First Search

0100-same-tree
0101-symmetric-tree
0102-binary-tree-level-order-traversal
0104-maximum-depth-of-binary-tree
0112-path-sum
0226-invert-binary-tree
0794-swim-in-rising-water

Union Find

0794-swim-in-rising-water

Heap (Priority Queue)

0794-swim-in-rising-water
1612-avoid-flood-in-the-city
3592-find-x-sum-of-all-k-long-subarrays-ii
3610-find-x-sum-of-all-k-long-subarrays-i

String

0257-binary-tree-paths
1353-find-resultant-array-after-removing-anagrams
1700-minimum-time-to-make-rope-colorful
2137-final-value-of-variable-after-performing-operations
3233-maximize-the-number-of-partitions-after-operations

Backtracking

0257-binary-tree-paths

Monotonic Stack

0496-next-greater-element-i

Prefix Sum

3383-taking-maximum-energy-from-the-mystic-dungeon
3794-find-the-minimum-amount-of-time-to-brew-potions

Bit Manipulation

0136-single-number
0268-missing-number
3233-maximize-the-number-of-partitions-after-operations
3676-smallest-number-with-all-set-bits
3851-find-sum-of-array-product-of-magical-sequences

Counting

3437-maximum-total-damage-with-spell-casting

Bitmask

3233-maximize-the-number-of-partitions-after-operations
3851-find-sum-of-array-product-of-magical-sequences

Sliding Window

3592-find-x-sum-of-all-k-long-subarrays-ii
3610-find-x-sum-of-all-k-long-subarrays-i

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages