Skip to content

hardik0832/leetcode-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

leetcode-cpp

LeetCode Topics

Array

0001-two-sum
0036-valid-sudoku
0118-pascals-triangle
0121-best-time-to-buy-and-sell-stock
0136-single-number
0169-majority-element
0217-contains-duplicate
0498-diagonal-traverse
0679-24-game
0934-bitwise-ors-of-subarrays
0940-fruit-into-baskets
1402-count-square-submatrices-with-all-ones
1586-longest-subarray-of-1s-after-deleting-one-element
1628-count-submatrices-with-all-ones
1813-maximum-erasure-value
2079-delete-duplicate-folders-in-system
2170-count-number-of-maximum-bitwise-or-subsets
2229-maximum-fruits-harvested-after-at-most-k-steps
2316-count-hills-and-valleys-in-an-array
2400-minimum-score-after-removals-on-a-tree
2432-number-of-zero-filled-subarrays
2498-smallest-subarrays-with-maximum-bitwise-or
2503-longest-subarray-with-maximum-bitwise-and
2689-rearranging-fruits
3251-maximum-area-of-longest-diagonal-rectangle
3459-find-the-minimum-area-to-cover-all-ones-ii
3461-find-the-minimum-area-to-cover-all-ones-i
3648-find-the-maximum-number-of-fruits-collected
3733-length-of-longest-v-shaped-diagonal-segment
3748-sort-matrix-by-diagonals
3788-maximum-unique-subarray-sum-after-deletion
3790-fruits-into-baskets-ii
3791-fruits-into-baskets-iii

Hash Table

0001-two-sum
0036-valid-sudoku
0169-majority-element
0205-isomorphic-strings
0217-contains-duplicate
0242-valid-anagram
0290-word-pattern
0900-reordered-power-of-2
0940-fruit-into-baskets
1813-maximum-erasure-value
2079-delete-duplicate-folders-in-system
2689-rearranging-fruits
3788-maximum-unique-subarray-sum-after-deletion

String

0005-longest-palindromic-substring
0168-excel-sheet-column-title
0171-excel-sheet-column-number
0205-isomorphic-strings
0242-valid-anagram
0257-binary-tree-paths
0290-word-pattern
0344-reverse-string
0345-reverse-vowels-of-a-string
1302-delete-characters-to-make-fancy-string
1894-merge-strings-alternately
2079-delete-duplicate-folders-in-system
2346-largest-3-same-digit-number-in-string

Trie

2079-delete-duplicate-folders-in-system

Hash Function

2079-delete-duplicate-folders-in-system

Sliding Window

0867-new-21-game
0940-fruit-into-baskets
1586-longest-subarray-of-1s-after-deleting-one-element
1813-maximum-erasure-value
2229-maximum-fruits-harvested-after-at-most-k-steps
2498-smallest-subarrays-with-maximum-bitwise-or

Bit Manipulation

0136-single-number
0231-power-of-two
0342-power-of-four
0934-bitwise-ors-of-subarrays
2170-count-number-of-maximum-bitwise-or-subsets
2400-minimum-score-after-removals-on-a-tree
2498-smallest-subarrays-with-maximum-bitwise-or
2503-longest-subarray-with-maximum-bitwise-and

Tree

0257-binary-tree-paths
0543-diameter-of-binary-tree
2400-minimum-score-after-removals-on-a-tree

Depth-First Search

0257-binary-tree-paths
0543-diameter-of-binary-tree
2400-minimum-score-after-removals-on-a-tree

Greedy

1448-maximum-69-number
2689-rearranging-fruits
3788-maximum-unique-subarray-sum-after-deletion

Backtracking

0257-binary-tree-paths
0679-24-game
2170-count-number-of-maximum-bitwise-or-subsets

Enumeration

0900-reordered-power-of-2
2170-count-number-of-maximum-bitwise-or-subsets
3459-find-the-minimum-area-to-cover-all-ones-ii

Two Pointers

0005-longest-palindromic-substring
0344-reverse-string
0345-reverse-vowels-of-a-string
1894-merge-strings-alternately

Binary Search

2229-maximum-fruits-harvested-after-at-most-k-steps
2498-smallest-subarrays-with-maximum-bitwise-or
3790-fruits-into-baskets-ii
3791-fruits-into-baskets-iii

Brainteaser

2503-longest-subarray-with-maximum-bitwise-and

Dynamic Programming

0005-longest-palindromic-substring
0118-pascals-triangle
0121-best-time-to-buy-and-sell-stock
0826-soup-servings
0867-new-21-game
0934-bitwise-ors-of-subarrays
1402-count-square-submatrices-with-all-ones
1586-longest-subarray-of-1s-after-deleting-one-element
1628-count-submatrices-with-all-ones
2882-ways-to-express-an-integer-as-sum-of-powers
3648-find-the-maximum-number-of-fruits-collected
3733-length-of-longest-v-shaped-diagonal-segment

Sort

2689-rearranging-fruits

Prefix Sum

2229-maximum-fruits-harvested-after-at-most-k-steps

Segment Tree

3790-fruits-into-baskets-ii
3791-fruits-into-baskets-iii

Simulation

0498-diagonal-traverse
3790-fruits-into-baskets-ii

Ordered Set

3790-fruits-into-baskets-ii
3791-fruits-into-baskets-iii

Matrix

0036-valid-sudoku
0498-diagonal-traverse
1402-count-square-submatrices-with-all-ones
1628-count-submatrices-with-all-ones
3459-find-the-minimum-area-to-cover-all-ones-ii
3461-find-the-minimum-area-to-cover-all-ones-i
3648-find-the-maximum-number-of-fruits-collected
3733-length-of-longest-v-shaped-diagonal-segment
3748-sort-matrix-by-diagonals

Math

0168-excel-sheet-column-title
0171-excel-sheet-column-number
0231-power-of-two
0326-power-of-three
0342-power-of-four
0679-24-game
0826-soup-servings
0867-new-21-game
0900-reordered-power-of-2
1448-maximum-69-number
2432-number-of-zero-filled-subarrays
3279-alice-and-bob-playing-flower-game

Probability and Statistics

0826-soup-servings
0867-new-21-game

Recursion

0206-reverse-linked-list
0231-power-of-two
0326-power-of-three
0342-power-of-four

Sorting

0169-majority-element
0217-contains-duplicate
0242-valid-anagram
0900-reordered-power-of-2
3748-sort-matrix-by-diagonals

Counting

0169-majority-element
0900-reordered-power-of-2

Stack

1628-count-submatrices-with-all-ones

Monotonic Stack

1628-count-submatrices-with-all-ones

Divide and Conquer

0169-majority-element

Memoization

3733-length-of-longest-v-shaped-diagonal-segment

Binary Tree

0257-binary-tree-paths
0543-diameter-of-binary-tree

Linked List

0206-reverse-linked-list

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages