Skip to content

jatinmadan13/leetCode-gfg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

491 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

leetCode-gfg

LeetCode Topics

Array

0001-two-sum
0004-median-of-two-sorted-arrays
0011-container-with-most-water
0015-3sum
0026-remove-duplicates-from-sorted-array
0027-remove-element
0033-search-in-rotated-sorted-array
0039-combination-sum
0046-permutations
0053-maximum-subarray
0080-remove-duplicates-from-sorted-array-ii
0088-merge-sorted-array
0118-pascals-triangle
0121-best-time-to-buy-and-sell-stock
0128-longest-consecutive-sequence
0167-two-sum-ii-input-array-is-sorted
0217-contains-duplicate
0283-move-zeroes
0410-split-array-largest-sum
0485-max-consecutive-ones
0632-smallest-range-covering-elements-from-k-lists
0966-binary-subarrays-with-sum
1002-maximum-width-ramp
1046-max-consecutive-ones-iii
1056-capacity-to-ship-packages-within-d-days
1350-remove-sub-folders-from-the-filesystem
1370-count-number-of-nice-subarrays
1402-count-square-submatrices-with-all-ones
1408-find-the-smallest-divisor-given-a-threshold
1605-minimum-number-of-days-to-make-m-bouquets
1646-kth-missing-positive-number
1766-minimum-number-of-removals-to-make-mountain-array
1878-check-if-array-is-sorted-and-rotated
1886-minimum-limit-of-balls-in-a-bag
1923-sentence-similarity-iii
1972-rotating-the-box
2170-count-number-of-maximum-bitwise-or-subsets
2179-most-beautiful-item-for-each-query
2232-adding-spaces-to-a-string
2356-largest-combination-with-bitwise-and-greater-than-zero
2545-height-of-binary-tree-after-subtree-removal-queries
2554-minimum-total-distance-traveled
2616-maximal-score-after-applying-k-operations
2695-find-score-of-an-array-after-marking-all-elements
2794-maximum-number-of-moves-in-a-grid
3291-find-if-array-can-be-sorted
3427-special-array-ii
3517-shortest-distance-after-road-addition-queries-i

Hash Table

0001-two-sum
0003-longest-substring-without-repeating-characters
0128-longest-consecutive-sequence
0141-linked-list-cycle
0217-contains-duplicate
0424-longest-repeating-character-replacement
0632-smallest-range-covering-elements-from-k-lists
0966-binary-subarrays-with-sum
1370-count-number-of-nice-subarrays
1715-split-a-string-into-the-max-number-of-unique-substrings
2356-largest-combination-with-bitwise-and-greater-than-zero
2677-cousins-in-binary-tree-ii
2695-find-score-of-an-array-after-marking-all-elements

Linked List

0002-add-two-numbers
0021-merge-two-sorted-lists
0141-linked-list-cycle
0206-reverse-linked-list

Math

0002-add-two-numbers
0007-reverse-integer
0009-palindrome-number
0670-maximum-swap
1370-count-number-of-nice-subarrays
2032-largest-odd-number-in-string

Recursion

0002-add-two-numbers
0021-merge-two-sorted-lists
0206-reverse-linked-list
1197-parsing-a-boolean-expression
1667-find-kth-bit-in-nth-binary-string

String

0003-longest-substring-without-repeating-characters
0005-longest-palindromic-substring
0008-string-to-integer-atoi
0028-find-the-index-of-the-first-occurrence-in-a-string
0125-valid-palindrome
0131-palindrome-partitioning
0151-reverse-words-in-a-string
0345-reverse-vowels-of-a-string
0392-is-subsequence
0424-longest-repeating-character-replacement
0812-rotate-string
0957-minimum-add-to-make-parentheses-valid
1078-remove-outermost-parentheses
1197-parsing-a-boolean-expression
1302-delete-characters-to-make-fancy-string
1304-longest-happy-string
1350-remove-sub-folders-from-the-filesystem
1566-check-if-a-word-occurs-as-a-prefix-of-any-word-in-a-sentence
1667-find-kth-bit-in-nth-binary-string
1715-split-a-string-into-the-max-number-of-unique-substrings
1894-merge-strings-alternately
1923-sentence-similarity-iii
2032-largest-odd-number-in-string
2095-minimum-number-of-swaps-to-make-the-string-balanced
2232-adding-spaces-to-a-string
2414-move-pieces-to-obtain-a-string
2580-circular-sentence
3174-minimum-number-of-changes-to-make-binary-string-beautiful
3195-separate-black-and-white-balls

Sliding Window

0003-longest-substring-without-repeating-characters
0424-longest-repeating-character-replacement
0632-smallest-range-covering-elements-from-k-lists
0966-binary-subarrays-with-sum
1046-max-consecutive-ones-iii
1370-count-number-of-nice-subarrays

Binary Search

0004-median-of-two-sorted-arrays
0033-search-in-rotated-sorted-array
0167-two-sum-ii-input-array-is-sorted
0410-split-array-largest-sum
1046-max-consecutive-ones-iii
1056-capacity-to-ship-packages-within-d-days
1408-find-the-smallest-divisor-given-a-threshold
1605-minimum-number-of-days-to-make-m-bouquets
1646-kth-missing-positive-number
1766-minimum-number-of-removals-to-make-mountain-array
1886-minimum-limit-of-balls-in-a-bag
2179-most-beautiful-item-for-each-query
3427-special-array-ii

Two Pointers

0005-longest-palindromic-substring
0011-container-with-most-water
0015-3sum
0026-remove-duplicates-from-sorted-array
0027-remove-element
0028-find-the-index-of-the-first-occurrence-in-a-string
0080-remove-duplicates-from-sorted-array-ii
0088-merge-sorted-array
0125-valid-palindrome
0141-linked-list-cycle
0151-reverse-words-in-a-string
0167-two-sum-ii-input-array-is-sorted
0283-move-zeroes
0345-reverse-vowels-of-a-string
0392-is-subsequence
1566-check-if-a-word-occurs-as-a-prefix-of-any-word-in-a-sentence
1894-merge-strings-alternately
1923-sentence-similarity-iii
1972-rotating-the-box
2095-minimum-number-of-swaps-to-make-the-string-balanced
2232-adding-spaces-to-a-string
2414-move-pieces-to-obtain-a-string
3195-separate-black-and-white-balls

Divide and Conquer

0004-median-of-two-sorted-arrays
0053-maximum-subarray

Dynamic Programming

0005-longest-palindromic-substring
0053-maximum-subarray
0118-pascals-triangle
0121-best-time-to-buy-and-sell-stock
0131-palindrome-partitioning
0392-is-subsequence
0410-split-array-largest-sum
1402-count-square-submatrices-with-all-ones
1766-minimum-number-of-removals-to-make-mountain-array
2554-minimum-total-distance-traveled
2794-maximum-number-of-moves-in-a-grid

Sorting

0015-3sum
0088-merge-sorted-array
0217-contains-duplicate
0632-smallest-range-covering-elements-from-k-lists
2179-most-beautiful-item-for-each-query
2554-minimum-total-distance-traveled
2646-kth-largest-sum-in-a-binary-tree
2695-find-score-of-an-array-after-marking-all-elements
3291-find-if-array-can-be-sorted

Greedy

0011-container-with-most-water
0410-split-array-largest-sum
0632-smallest-range-covering-elements-from-k-lists
0670-maximum-swap
0957-minimum-add-to-make-parentheses-valid
1304-longest-happy-string
1766-minimum-number-of-removals-to-make-mountain-array
2032-largest-odd-number-in-string
2095-minimum-number-of-swaps-to-make-the-string-balanced
2616-maximal-score-after-applying-k-operations
3195-separate-black-and-white-balls

Database

0175-combine-two-tables
0176-second-highest-salary
0181-employees-earning-more-than-their-managers
0196-delete-duplicate-emails
0570-managers-with-at-least-5-direct-reports
0596-classes-more-than-5-students
0610-triangle-judgement
0619-biggest-single-number
0620-not-boring-movies
1135-customers-who-bought-all-products
1155-product-sales-analysis-iii
1245-user-activity-for-the-past-30-days-i
1292-immediate-food-delivery-ii
1462-list-the-products-ordered-in-a-period
1625-group-sold-products-by-the-date
1664-find-users-with-valid-e-mails
1670-patients-with-a-condition
1811-fix-names-in-a-table
1877-find-followers-count
1882-the-number-of-employees-which-report-to-each-employee
1942-primary-department-for-each-employee
2127-employees-whose-manager-left-the-company

Prefix Sum

0410-split-array-largest-sum
0966-binary-subarrays-with-sum
1046-max-consecutive-ones-iii
3427-special-array-ii

Union Find

0128-longest-consecutive-sequence

Stack

0094-binary-tree-inorder-traversal
0144-binary-tree-preorder-traversal
0957-minimum-add-to-make-parentheses-valid
1002-maximum-width-ramp
1078-remove-outermost-parentheses
1197-parsing-a-boolean-expression
2095-minimum-number-of-swaps-to-make-the-string-balanced

Backtracking

0039-combination-sum
0046-permutations
0131-palindrome-partitioning
1715-split-a-string-into-the-max-number-of-unique-substrings
2170-count-number-of-maximum-bitwise-or-subsets

Tree

0094-binary-tree-inorder-traversal
0102-binary-tree-level-order-traversal
0144-binary-tree-preorder-traversal
0988-flip-equivalent-binary-trees
2545-height-of-binary-tree-after-subtree-removal-queries
2646-kth-largest-sum-in-a-binary-tree
2677-cousins-in-binary-tree-ii

Breadth-First Search

0102-binary-tree-level-order-traversal
2545-height-of-binary-tree-after-subtree-removal-queries
2646-kth-largest-sum-in-a-binary-tree
2677-cousins-in-binary-tree-ii
3517-shortest-distance-after-road-addition-queries-i

Binary Tree

0094-binary-tree-inorder-traversal
0102-binary-tree-level-order-traversal
0144-binary-tree-preorder-traversal
0988-flip-equivalent-binary-trees
2545-height-of-binary-tree-after-subtree-removal-queries
2646-kth-largest-sum-in-a-binary-tree
2677-cousins-in-binary-tree-ii

Depth-First Search

0094-binary-tree-inorder-traversal
0144-binary-tree-preorder-traversal
0988-flip-equivalent-binary-trees
1350-remove-sub-folders-from-the-filesystem
2201-valid-arrangement-of-pairs
2545-height-of-binary-tree-after-subtree-removal-queries
2677-cousins-in-binary-tree-ii

Monotonic Stack

1002-maximum-width-ramp

Heap (Priority Queue)

0632-smallest-range-covering-elements-from-k-lists
1304-longest-happy-string
2616-maximal-score-after-applying-k-operations
2695-find-score-of-an-array-after-marking-all-elements

Bit Manipulation

2170-count-number-of-maximum-bitwise-or-subsets
2356-largest-combination-with-bitwise-and-greater-than-zero
3291-find-if-array-can-be-sorted

Enumeration

2170-count-number-of-maximum-bitwise-or-subsets

Simulation

1667-find-kth-bit-in-nth-binary-string
2232-adding-spaces-to-a-string
2695-find-score-of-an-array-after-marking-all-elements

Trie

1350-remove-sub-folders-from-the-filesystem

Matrix

1402-count-square-submatrices-with-all-ones
1972-rotating-the-box
2794-maximum-number-of-moves-in-a-grid

String Matching

0028-find-the-index-of-the-first-occurrence-in-a-string
0812-rotate-string
1566-check-if-a-word-occurs-as-a-prefix-of-any-word-in-a-sentence

Counting

2356-largest-combination-with-bitwise-and-greater-than-zero

Graph

2201-valid-arrangement-of-pairs
3517-shortest-distance-after-road-addition-queries-i

Eulerian Circuit

2201-valid-arrangement-of-pairs

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages