Skip to content

Suraj1719/LeetCodeProblem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCodeProblem

Here I solve leetcode problems by different approach , you can see and try to solve by own . Here you can find the problems solution if you find problem or have doubt in any problem . Try to understand , then solve by yourself .

Keep learning and Growing .

Two Pointers

0075-sort-colors
0853-most-profit-assigning-work
2572-append-characters-to-string-to-make-subsequence

String

0648-replace-words
1044-find-common-characters
2572-append-characters-to-string-to-make-subsequence

Greedy

0330-patching-array
0853-most-profit-assigning-work
0876-hand-of-straights
0982-minimum-increment-to-make-array-unique
1422-divide-array-in-sets-of-k-consecutive-numbers
2148-minimum-number-of-moves-to-seat-everyone
2572-append-characters-to-string-to-make-subsequence

Array

0075-sort-colors
0330-patching-array
0648-replace-words
0853-most-profit-assigning-work
0876-hand-of-straights
0982-minimum-increment-to-make-array-unique
1044-find-common-characters
1217-relative-sort-array
1422-divide-array-in-sets-of-k-consecutive-numbers
1553-count-triplets-that-can-form-two-arrays-of-equal-xor
1631-number-of-sub-arrays-with-odd-sum
2148-minimum-number-of-moves-to-seat-everyone

Hash Table

0648-replace-words
0876-hand-of-straights
1044-find-common-characters
1217-relative-sort-array
1422-divide-array-in-sets-of-k-consecutive-numbers
1553-count-triplets-that-can-form-two-arrays-of-equal-xor

Math

1553-count-triplets-that-can-form-two-arrays-of-equal-xor
1631-number-of-sub-arrays-with-odd-sum

Bit Manipulation

1553-count-triplets-that-can-form-two-arrays-of-equal-xor

Prefix Sum

1553-count-triplets-that-can-form-two-arrays-of-equal-xor
1631-number-of-sub-arrays-with-odd-sum

Sorting

0075-sort-colors
0853-most-profit-assigning-work
0876-hand-of-straights
0982-minimum-increment-to-make-array-unique
1217-relative-sort-array
1422-divide-array-in-sets-of-k-consecutive-numbers
2148-minimum-number-of-moves-to-seat-everyone

Trie

0648-replace-words

Dynamic Programming

1631-number-of-sub-arrays-with-odd-sum

Counting Sort

0982-minimum-increment-to-make-array-unique
1217-relative-sort-array

Tree

0103-binary-tree-zigzag-level-order-traversal

Breadth-First Search

0103-binary-tree-zigzag-level-order-traversal

Binary Tree

0103-binary-tree-zigzag-level-order-traversal

Binary Search

0853-most-profit-assigning-work

LeetCode Topics

Hash Table

0037-sudoku-solver
0076-minimum-window-substring
0128-longest-consecutive-sequence
0438-find-all-anagrams-in-a-string
0554-brick-wall
0560-subarray-sum-equals-k
0594-longest-harmonious-subsequence
0900-reordered-power-of-2
0906-walking-robot-simulation
1016-subarray-sums-divisible-by-k
1813-maximum-erasure-value
2044-number-of-wonderful-substrings
2204-find-subsequence-of-length-k-with-the-largest-sum
2586-longest-square-streak-in-an-array
2689-rearranging-fruits
3276-minimum-number-of-pushes-to-type-word-ii
3360-minimum-deletions-to-make-string-k-special

String

0076-minimum-window-substring
0438-find-all-anagrams-in-a-string
0539-minimum-time-difference
1302-delete-characters-to-make-fancy-string
2044-number-of-wonderful-substrings
2095-minimum-number-of-swaps-to-make-the-string-balanced
3276-minimum-number-of-pushes-to-type-word-ii
3360-minimum-deletions-to-make-string-k-special

Greedy

0045-jump-game-ii
0055-jump-game
0134-gas-station
0902-minimum-number-of-refueling-stops
1346-maximize-the-topmost-element-after-k-moves
1917-maximum-average-pass-ratio
2095-minimum-number-of-swaps-to-make-the-string-balanced
2689-rearranging-fruits
3276-minimum-number-of-pushes-to-type-word-ii
3360-minimum-deletions-to-make-string-k-special

Sorting

0088-merge-sorted-array
0215-kth-largest-element-in-an-array
0274-h-index
0295-find-median-from-data-stream
0539-minimum-time-difference
0594-longest-harmonious-subsequence
0900-reordered-power-of-2
2204-find-subsequence-of-length-k-with-the-largest-sum
2586-longest-square-streak-in-an-array
2646-kth-largest-sum-in-a-binary-tree
2689-rearranging-fruits
3276-minimum-number-of-pushes-to-type-word-ii
3360-minimum-deletions-to-make-string-k-special
3430-count-days-without-meetings

Counting

0594-longest-harmonious-subsequence
0900-reordered-power-of-2
3276-minimum-number-of-pushes-to-type-word-ii
3360-minimum-deletions-to-make-string-k-special

Array

0037-sudoku-solver
0039-combination-sum
0040-combination-sum-ii
0045-jump-game-ii
0055-jump-game
0080-remove-duplicates-from-sorted-array-ii
0081-search-in-rotated-sorted-array-ii
0088-merge-sorted-array
0118-pascals-triangle
0128-longest-consecutive-sequence
0134-gas-station
0215-kth-largest-element-in-an-array
0238-product-of-array-except-self
0274-h-index
0416-partition-equal-subset-sum
0539-minimum-time-difference
0554-brick-wall
0560-subarray-sum-equals-k
0594-longest-harmonious-subsequence
0902-minimum-number-of-refueling-stops
0906-walking-robot-simulation
1016-subarray-sums-divisible-by-k
1056-capacity-to-ship-packages-within-d-days
1293-three-consecutive-odds
1346-maximize-the-topmost-element-after-k-moves
1435-xor-queries-of-a-subarray
1586-longest-subarray-of-1s-after-deleting-one-element
1628-count-submatrices-with-all-ones
1813-maximum-erasure-value
1917-maximum-average-pass-ratio
2006-find-the-student-that-will-replace-the-chalk
2132-convert-1d-array-into-2d-array
2144-maximum-difference-between-increasing-elements
2204-find-subsequence-of-length-k-with-the-largest-sum
2503-longest-subarray-with-maximum-bitwise-and
2586-longest-square-streak-in-an-array
2689-rearranging-fruits
2794-maximum-number-of-moves-in-a-grid
3251-maximum-area-of-longest-diagonal-rectangle
3430-count-days-without-meetings
3747-maximum-difference-between-adjacent-elements-in-a-circular-array
3790-fruits-into-baskets-ii

Backtracking

0037-sudoku-solver
0039-combination-sum
0040-combination-sum-ii

Matrix

0037-sudoku-solver
1628-count-submatrices-with-all-ones
2132-convert-1d-array-into-2d-array
2794-maximum-number-of-moves-in-a-grid

Simulation

0906-walking-robot-simulation
2006-find-the-student-that-will-replace-the-chalk
2132-convert-1d-array-into-2d-array
3790-fruits-into-baskets-ii

Binary Search

0081-search-in-rotated-sorted-array-ii
1056-capacity-to-ship-packages-within-d-days
2006-find-the-student-that-will-replace-the-chalk
2586-longest-square-streak-in-an-array
3790-fruits-into-baskets-ii

Prefix Sum

0238-product-of-array-except-self
0560-subarray-sum-equals-k
1016-subarray-sums-divisible-by-k
1435-xor-queries-of-a-subarray
2006-find-the-student-that-will-replace-the-chalk
2044-number-of-wonderful-substrings

Bit Manipulation

1435-xor-queries-of-a-subarray
2044-number-of-wonderful-substrings
2503-longest-subarray-with-maximum-bitwise-and

Brainteaser

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

Two Pointers

0080-remove-duplicates-from-sorted-array-ii
0088-merge-sorted-array
0295-find-median-from-data-stream
2095-minimum-number-of-swaps-to-make-the-string-balanced

Dynamic Programming

0045-jump-game-ii
0055-jump-game
0118-pascals-triangle
0416-partition-equal-subset-sum
0902-minimum-number-of-refueling-stops
1586-longest-subarray-of-1s-after-deleting-one-element
1628-count-submatrices-with-all-ones
2586-longest-square-streak-in-an-array
2794-maximum-number-of-moves-in-a-grid

Counting Sort

0274-h-index

Stack

0144-binary-tree-preorder-traversal
1628-count-submatrices-with-all-ones
2095-minimum-number-of-swaps-to-make-the-string-balanced

Tree

0104-maximum-depth-of-binary-tree
0110-balanced-binary-tree
0144-binary-tree-preorder-traversal
0543-diameter-of-binary-tree
2646-kth-largest-sum-in-a-binary-tree

Breadth-First Search

0104-maximum-depth-of-binary-tree
2646-kth-largest-sum-in-a-binary-tree

Binary Tree

0104-maximum-depth-of-binary-tree
0110-balanced-binary-tree
0144-binary-tree-preorder-traversal
0543-diameter-of-binary-tree
2646-kth-largest-sum-in-a-binary-tree

Math

0539-minimum-time-difference
0900-reordered-power-of-2
1411-convert-binary-number-in-a-linked-list-to-integer
2998-count-symmetric-integers
3279-alice-and-bob-playing-flower-game

Enumeration

0900-reordered-power-of-2
2998-count-symmetric-integers

Union Find

0128-longest-consecutive-sequence

Sliding Window

0076-minimum-window-substring
0438-find-all-anagrams-in-a-string
0594-longest-harmonious-subsequence
1586-longest-subarray-of-1s-after-deleting-one-element
1813-maximum-erasure-value

Divide and Conquer

0215-kth-largest-element-in-an-array

Heap (Priority Queue)

0215-kth-largest-element-in-an-array
0295-find-median-from-data-stream
0902-minimum-number-of-refueling-stops
1917-maximum-average-pass-ratio
2204-find-subsequence-of-length-k-with-the-largest-sum

Quickselect

0215-kth-largest-element-in-an-array

Design

0295-find-median-from-data-stream

Data Stream

0295-find-median-from-data-stream

Linked List

1411-convert-binary-number-in-a-linked-list-to-integer

Segment Tree

3790-fruits-into-baskets-ii

Ordered Set

3790-fruits-into-baskets-ii

Depth-First Search

0104-maximum-depth-of-binary-tree
0110-balanced-binary-tree
0144-binary-tree-preorder-traversal
0543-diameter-of-binary-tree

Monotonic Stack

1628-count-submatrices-with-all-ones

About

Here I solve leetcode problems by different approach , you can see and try to solve by own .

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages