Skip to content
aryantawade123-sysPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

955 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

LeetCode Topics

Array

0001-two-sum
0004-median-of-two-sorted-arrays
0011-container-with-most-water
0015-3sum
0018-4sum
0031-next-permutation
0033-search-in-rotated-sorted-array
0042-trapping-rain-water
0068-text-justification
0079-word-search
0121-best-time-to-buy-and-sell-stock
0167-two-sum-ii-input-array-is-sorted
0169-majority-element
0217-contains-duplicate
0283-move-zeroes
0462-minimum-moves-to-equal-array-elements-ii
0486-predict-the-winner
0560-subarray-sum-equals-k
0835-image-overlap
0877-stone-game
1140-stone-game-ii
1254-number-of-closed-islands
1267-count-servers-that-communicate
1385-find-the-distance-value-between-two-arrays
1386-cinema-seat-allocation
1406-stone-game-iii
1477-find-two-non-overlapping-sub-arrays-each-with-target-sum
1563-stone-game-v
1569-number-of-ways-to-reorder-array-to-get-same-bst
1606-find-servers-that-handled-most-number-of-requests
1658-minimum-operations-to-reduce-x-to-zero
1807-evaluate-the-bracket-pairs-of-a-string
1872-stone-game-viii
1882-process-tasks-using-servers
2029-stone-game-ix
2091-removing-minimum-and-maximum-from-array
2213-longest-substring-of-one-repeating-character
2267-check-if-there-is-a-valid-parentheses-string-path
2333-minimum-sum-of-squared-difference
2515-shortest-distance-to-target-string-in-a-circular-array
2747-count-zero-request-servers
2778-sum-of-squares-of-special-elements
2897-apply-operations-on-array-to-maximize-sum-of-squares
2913-subarrays-distinct-element-sum-of-squares-i
2948-make-lexicographically-smallest-array-by-swapping-elements
2958-length-of-longest-subarray-with-at-most-k-frequency
2996-smallest-missing-integer-greater-than-sequential-prefix-sum
3069-distribute-elements-into-two-arrays-i
3105-longest-strictly-increasing-or-strictly-decreasing-subarray
3116-kth-smallest-amount-with-single-denomination-combination
3414-maximum-score-of-non-overlapping-intervals
3420-count-non-decreasing-subarrays-after-k-operations
3471-find-the-largest-almost-missing-integer
3483-unique-3-digit-even-numbers
3505-minimum-operations-to-make-elements-within-k-subarrays-equal
3524-find-x-value-of-array-i
3525-find-x-value-of-array-ii
3550-smallest-index-with-digit-sum-equal-to-index
3568-minimum-moves-to-clean-the-classroom
3644-maximum-k-to-sort-a-permutation
3693-climbing-stairs-ii
3702-longest-subsequence-with-non-zero-bitwise-xor
3718-smallest-missing-multiple-of-k
3727-maximum-alternating-sum-of-squares
3731-find-missing-elements
3736-minimum-moves-to-equal-array-elements-iii
3841-palindromic-path-queries-in-a-tree
3875-construct-uniform-parity-array-i
3876-construct-uniform-parity-array-ii
3882-minimum-xor-path-in-a-grid
3886-sum-of-sortable-integers
3903-smallest-stable-index-i
3904-smallest-stable-index-ii
3942-minimum-operations-to-sort-a-permutation

Hash Table

0001-two-sum
0003-longest-substring-without-repeating-characters
0169-majority-element
0217-contains-duplicate
0560-subarray-sum-equals-k
1096-brace-expansion-ii
1386-cinema-seat-allocation
1477-find-two-non-overlapping-sub-arrays-each-with-target-sum
1520-maximum-number-of-non-overlapping-substrings
1658-minimum-operations-to-reduce-x-to-zero
1807-evaluate-the-bracket-pairs-of-a-string
2747-count-zero-request-servers
2897-apply-operations-on-array-to-maximize-sum-of-squares
2913-subarrays-distinct-element-sum-of-squares-i
2958-length-of-longest-subarray-with-at-most-k-frequency
2996-smallest-missing-integer-greater-than-sequential-prefix-sum
3016-minimum-number-of-pushes-to-type-word-ii
3090-maximum-length-substring-with-two-occurrences
3471-find-the-largest-almost-missing-integer
3483-unique-3-digit-even-numbers
3505-minimum-operations-to-make-elements-within-k-subarrays-equal
3568-minimum-moves-to-clean-the-classroom
3718-smallest-missing-multiple-of-k
3720-lexicographically-smallest-permutation-greater-than-target
3731-find-missing-elements

Sorting

0015-3sum
0018-4sum
0169-majority-element
0217-contains-duplicate
0462-minimum-moves-to-equal-array-elements-ii
1096-brace-expansion-ii
1385-find-the-distance-value-between-two-arrays
1520-maximum-number-of-non-overlapping-substrings
2333-minimum-sum-of-squared-difference
2747-count-zero-request-servers
2948-make-lexicographically-smallest-array-by-swapping-elements
2996-smallest-missing-integer-greater-than-sequential-prefix-sum
3016-minimum-number-of-pushes-to-type-word-ii
3414-maximum-score-of-non-overlapping-intervals
3517-smallest-palindromic-rearrangement-i
3727-maximum-alternating-sum-of-squares
3731-find-missing-elements
3886-sum-of-sortable-integers

String

0003-longest-substring-without-repeating-characters
0005-longest-palindromic-substring
0006-zigzag-conversion
0010-regular-expression-matching
0020-valid-parentheses
0022-generate-parentheses
0032-longest-valid-parentheses
0068-text-justification
0079-word-search
0091-decode-ways
0115-distinct-subsequences
0301-remove-invalid-parentheses
0678-valid-parenthesis-string
0796-rotate-string
0856-score-of-parentheses
0921-minimum-add-to-make-parentheses-valid
0940-distinct-subsequences-ii
1021-remove-outermost-parentheses
1096-brace-expansion-ii
1111-maximum-nesting-depth-of-two-valid-parentheses-strings
1190-reverse-substrings-between-each-pair-of-parentheses
1320-minimum-distance-to-type-a-word-using-two-fingers
1520-maximum-number-of-non-overlapping-substrings
1614-maximum-nesting-depth-of-the-parentheses
1807-evaluate-the-bracket-pairs-of-a-string
1927-sum-game
2213-longest-substring-of-one-repeating-character
2409-count-days-spent-together
2472-maximum-number-of-non-overlapping-palindrome-substrings
2515-shortest-distance-to-target-string-in-a-circular-array
2904-shortest-and-lexicographically-smallest-beautiful-string
3016-minimum-number-of-pushes-to-type-word-ii
3090-maximum-length-substring-with-two-occurrences
3302-find-the-lexicographically-smallest-valid-sequence
3348-smallest-divisible-digit-product-ii
3498-reverse-degree-of-a-string
3517-smallest-palindromic-rearrangement-i
3720-lexicographically-smallest-permutation-greater-than-target
3734-lexicographically-smallest-palindromic-permutation-greater-than-target
3841-palindromic-path-queries-in-a-tree
3863-minimum-operations-to-sort-a-string
3970-shortest-path-with-at-most-k-consecutive-identical-characters

Greedy

0011-container-with-most-water
0678-valid-parenthesis-string
0921-minimum-add-to-make-parentheses-valid
1386-cinema-seat-allocation
1520-maximum-number-of-non-overlapping-substrings
1927-sum-game
2029-stone-game-ix
2091-removing-minimum-and-maximum-from-array
2333-minimum-sum-of-squared-difference
2472-maximum-number-of-non-overlapping-palindrome-substrings
2897-apply-operations-on-array-to-maximize-sum-of-squares
3016-minimum-number-of-pushes-to-type-word-ii
3302-find-the-lexicographically-smallest-valid-sequence
3348-smallest-divisible-digit-product-ii
3720-lexicographically-smallest-permutation-greater-than-target
3723-maximize-sum-of-squares-of-digits
3727-maximum-alternating-sum-of-squares
3789-minimum-cost-to-acquire-required-items

Counting

0169-majority-element
1267-count-servers-that-communicate
2029-stone-game-ix
3016-minimum-number-of-pushes-to-type-word-ii
3720-lexicographically-smallest-permutation-greater-than-target

Math

0007-reverse-integer
0009-palindrome-number
0462-minimum-moves-to-equal-array-elements-ii
0486-predict-the-winner
0836-rectangle-overlap
0877-stone-game
1140-stone-game-ii
1401-circle-and-rectangle-overlapping
1406-stone-game-iii
1510-stone-game-iv
1563-stone-game-v
1569-number-of-ways-to-reorder-array-to-get-same-bst
1621-number-of-sets-of-k-non-overlapping-line-segments
1872-stone-game-viii
1927-sum-game
2029-stone-game-ix
2409-count-days-spent-together
3116-kth-smallest-amount-with-single-denomination-combination
3348-smallest-divisible-digit-product-ii
3505-minimum-operations-to-make-elements-within-k-subarrays-equal
3524-find-x-value-of-array-i
3525-find-x-value-of-array-ii
3550-smallest-index-with-digit-sum-equal-to-index
3622-check-divisibility-by-digit-sum-and-product
3723-maximize-sum-of-squares-of-digits
3736-minimum-moves-to-equal-array-elements-iii
3789-minimum-cost-to-acquire-required-items
3870-count-commas-in-range
3871-count-commas-in-range-ii
3875-construct-uniform-parity-array-i
3876-construct-uniform-parity-array-ii
3886-sum-of-sortable-integers

Dynamic Programming

0005-longest-palindromic-substring
0010-regular-expression-matching
0022-generate-parentheses
0032-longest-valid-parentheses
0042-trapping-rain-water
0091-decode-ways
0115-distinct-subsequences
0121-best-time-to-buy-and-sell-stock
0486-predict-the-winner
0678-valid-parenthesis-string
0877-stone-game
0940-distinct-subsequences-ii
1140-stone-game-ii
1320-minimum-distance-to-type-a-word-using-two-fingers
1406-stone-game-iii
1477-find-two-non-overlapping-sub-arrays-each-with-target-sum
1510-stone-game-iv
1563-stone-game-v
1569-number-of-ways-to-reorder-array-to-get-same-bst
1621-number-of-sets-of-k-non-overlapping-line-segments
1872-stone-game-viii
2267-check-if-there-is-a-valid-parentheses-string-path
2472-maximum-number-of-non-overlapping-palindrome-substrings
3302-find-the-lexicographically-smallest-valid-sequence
3414-maximum-score-of-non-overlapping-intervals
3505-minimum-operations-to-make-elements-within-k-subarrays-equal
3524-find-x-value-of-array-i
3693-climbing-stairs-ii
3882-minimum-xor-path-in-a-grid

Recursion

0010-regular-expression-matching
0486-predict-the-winner
3483-unique-3-digit-even-numbers

Game Theory

0486-predict-the-winner
0877-stone-game
1140-stone-game-ii
1406-stone-game-iii
1510-stone-game-iv
1563-stone-game-v
1872-stone-game-viii
1927-sum-game
2029-stone-game-ix

Divide and Conquer

0004-median-of-two-sorted-arrays
0169-majority-element
1569-number-of-ways-to-reorder-array-to-get-same-bst
3841-palindromic-path-queries-in-a-tree

Prefix Sum

0560-subarray-sum-equals-k
1140-stone-game-ii
1621-number-of-sets-of-k-non-overlapping-line-segments
1658-minimum-operations-to-reduce-x-to-zero
1872-stone-game-viii
3903-smallest-stable-index-i
3904-smallest-stable-index-ii

Minimax

1140-stone-game-ii
1406-stone-game-iii
1510-stone-game-iv
1872-stone-game-viii
2029-stone-game-ix

Zero-Sum Game

1140-stone-game-ii
1406-stone-game-iii
1510-stone-game-iv
1872-stone-game-viii
2029-stone-game-ix

Two Pointers

0005-longest-palindromic-substring
0011-container-with-most-water
0015-3sum
0018-4sum
0031-next-permutation
0042-trapping-rain-water
0167-two-sum-ii-input-array-is-sorted
0283-move-zeroes
1385-find-the-distance-value-between-two-arrays
2095-delete-the-middle-node-of-a-linked-list
2472-maximum-number-of-non-overlapping-palindrome-substrings
3302-find-the-lexicographically-smallest-valid-sequence
3734-lexicographically-smallest-palindromic-permutation-greater-than-target

Depth-First Search

0079-word-search
1254-number-of-closed-islands
1267-count-servers-that-communicate
2265-count-nodes-equal-to-average-of-subtree
3310-remove-methods-from-project
3841-palindromic-path-queries-in-a-tree

Breadth-First Search

0301-remove-invalid-parentheses
1096-brace-expansion-ii
1254-number-of-closed-islands
1267-count-servers-that-communicate
3310-remove-methods-from-project
3568-minimum-moves-to-clean-the-classroom

Graph Theory

3310-remove-methods-from-project
3970-shortest-path-with-at-most-k-consecutive-identical-characters

Backtracking

0022-generate-parentheses
0079-word-search
0301-remove-invalid-parentheses
1096-brace-expansion-ii
3348-smallest-divisible-digit-product-ii

Number Theory

3116-kth-smallest-amount-with-single-denomination-combination
3348-smallest-divisible-digit-product-ii

Nim Game

1510-stone-game-iv
2029-stone-game-ix

Sprague–Grundy Theorem

1510-stone-game-iv

Sliding Window

0003-longest-substring-without-repeating-characters
1477-find-two-non-overlapping-sub-arrays-each-with-target-sum
1658-minimum-operations-to-reduce-x-to-zero
2747-count-zero-request-servers
2904-shortest-and-lexicographically-smallest-beautiful-string
2958-length-of-longest-subarray-with-at-most-k-frequency
3090-maximum-length-substring-with-two-occurrences
3420-count-non-decreasing-subarrays-after-k-operations
3505-minimum-operations-to-make-elements-within-k-subarrays-equal

Segment Tree

2213-longest-substring-of-one-repeating-character
2913-subarrays-distinct-element-sum-of-squares-i
3420-count-non-decreasing-subarrays-after-k-operations
3525-find-x-value-of-array-ii
3841-palindromic-path-queries-in-a-tree

Ordered Set

1606-find-servers-that-handled-most-number-of-requests
2213-longest-substring-of-one-repeating-character

Bit Manipulation

1386-cinema-seat-allocation
2897-apply-operations-on-array-to-maximize-sum-of-squares
3116-kth-smallest-amount-with-single-denomination-combination
3568-minimum-moves-to-clean-the-classroom
3644-maximum-k-to-sort-a-permutation
3702-longest-subsequence-with-non-zero-bitwise-xor
3841-palindromic-path-queries-in-a-tree
3882-minimum-xor-path-in-a-grid

Boyer–Moore Majority Vote Algorithm

0169-majority-element

Simulation

0068-text-justification
1606-find-servers-that-handled-most-number-of-requests
3069-distribute-elements-into-two-arrays-i
3498-reverse-degree-of-a-string

Binary Search

0004-median-of-two-sorted-arrays
0033-search-in-rotated-sorted-array
0167-two-sum-ii-input-array-is-sorted
1385-find-the-distance-value-between-two-arrays
1477-find-two-non-overlapping-sub-arrays-each-with-target-sum
1658-minimum-operations-to-reduce-x-to-zero
2333-minimum-sum-of-squared-difference
3116-kth-smallest-amount-with-single-denomination-combination
3414-maximum-score-of-non-overlapping-intervals

Combinatorics

1569-number-of-ways-to-reorder-array-to-get-same-bst
1621-number-of-sets-of-k-non-overlapping-line-segments
3116-kth-smallest-amount-with-single-denomination-combination

Enumeration

2778-sum-of-squares-of-special-elements
3483-unique-3-digit-even-numbers
3720-lexicographically-smallest-permutation-greater-than-target
3734-lexicographically-smallest-palindromic-permutation-greater-than-target
3886-sum-of-sortable-integers

Union-Find

1254-number-of-closed-islands
1267-count-servers-that-communicate
1569-number-of-ways-to-reorder-array-to-get-same-bst
2948-make-lexicographically-smallest-array-by-swapping-elements

Linked List

2058-find-the-minimum-and-maximum-number-of-nodes-between-critical-points
2095-delete-the-middle-node-of-a-linked-list

Matrix

0079-word-search
0835-image-overlap
1254-number-of-closed-islands
1267-count-servers-that-communicate
2267-check-if-there-is-a-valid-parentheses-string-path
3568-minimum-moves-to-clean-the-classroom
3882-minimum-xor-path-in-a-grid

Manacher

0005-longest-palindromic-substring

Bracket Sequences

0020-valid-parentheses
0022-generate-parentheses
0032-longest-valid-parentheses
0678-valid-parenthesis-string
0856-score-of-parentheses
0921-minimum-add-to-make-parentheses-valid
1021-remove-outermost-parentheses
1111-maximum-nesting-depth-of-two-valid-parentheses-strings
1190-reverse-substrings-between-each-pair-of-parentheses
1614-maximum-nesting-depth-of-the-parentheses
2267-check-if-there-is-a-valid-parentheses-string-path

Tree

1569-number-of-ways-to-reorder-array-to-get-same-bst
2265-count-nodes-equal-to-average-of-subtree
3841-palindromic-path-queries-in-a-tree

Binary Tree

1569-number-of-ways-to-reorder-array-to-get-same-bst
2265-count-nodes-equal-to-average-of-subtree

Geometry

0836-rectangle-overlap
1401-circle-and-rectangle-overlapping

Counting Sort

3517-smallest-palindromic-rearrangement-i

Stack

0020-valid-parentheses
0032-longest-valid-parentheses
0042-trapping-rain-water
0678-valid-parenthesis-string
0856-score-of-parentheses
0921-minimum-add-to-make-parentheses-valid
1021-remove-outermost-parentheses
1096-brace-expansion-ii
1111-maximum-nesting-depth-of-two-valid-parentheses-strings
1190-reverse-substrings-between-each-pair-of-parentheses
1614-maximum-nesting-depth-of-the-parentheses
3420-count-non-decreasing-subarrays-after-k-operations

String Matching

0796-rotate-string

Heap (Priority Queue)

1606-find-servers-that-handled-most-number-of-requests
1882-process-tasks-using-servers
2333-minimum-sum-of-squared-difference
3505-minimum-operations-to-make-elements-within-k-subarrays-equal
3970-shortest-path-with-at-most-k-consecutive-identical-characters

Monotonic Stack

0042-trapping-rain-water
3420-count-non-decreasing-subarrays-after-k-operations

Binary Indexed Tree

2913-subarrays-distinct-element-sum-of-squares-i
3841-palindromic-path-queries-in-a-tree

Binary Search Tree

1569-number-of-ways-to-reorder-array-to-get-same-bst

Memoization

1569-number-of-ways-to-reorder-array-to-get-same-bst

Fermat's Little Theorem

1569-number-of-ways-to-reorder-array-to-get-same-bst

Shortest Path

3970-shortest-path-with-at-most-k-consecutive-identical-characters

Queue

3420-count-non-decreasing-subarrays-after-k-operations

Monotonic Queue

3420-count-non-decreasing-subarrays-after-k-operations

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages