Skip to content

rudracodeshere/leetcodinnng

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

531 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

! Just coding it !

LeetCode Topics

Array

0001-two-sum
0004-median-of-two-sorted-arrays
0011-container-with-most-water
0015-3sum
0018-4sum
0026-remove-duplicates-from-sorted-array
0031-next-permutation
0033-search-in-rotated-sorted-array
0036-valid-sudoku
0039-combination-sum
0040-combination-sum-ii
0042-trapping-rain-water
0046-permutations
0048-rotate-image
0049-group-anagrams
0053-maximum-subarray
0056-merge-intervals
0073-set-matrix-zeroes
0074-search-a-2d-matrix
0075-sort-colors
0078-subsets
0079-word-search
0084-largest-rectangle-in-histogram
0088-merge-sorted-array
0090-subsets-ii
0118-pascals-triangle
0121-best-time-to-buy-and-sell-stock
0128-longest-consecutive-sequence
0130-surrounded-regions
0139-word-break
0150-evaluate-reverse-polish-notation
0153-find-minimum-in-rotated-sorted-array
0167-two-sum-ii-input-array-is-sorted
0169-majority-element
0200-number-of-islands
0215-kth-largest-element-in-an-array
0217-contains-duplicate
0229-majority-element-ii
0238-product-of-array-except-self
0239-sliding-window-maximum
0287-find-the-duplicate-number
0347-top-k-frequent-elements
0417-pacific-atlantic-water-flow
0455-assign-cookies
0485-max-consecutive-ones
0493-reverse-pairs
0540-single-element-in-a-sorted-array
0621-task-scheduler
0695-max-area-of-island
0739-daily-temperatures
0792-binary-search
0883-car-fleet
0907-koko-eating-bananas
1014-k-closest-points-to-origin
1036-rotting-oranges
1127-last-stone-weight

Hash Table

0001-two-sum
0003-longest-substring-without-repeating-characters
0017-letter-combinations-of-a-phone-number
0036-valid-sudoku
0049-group-anagrams
0073-set-matrix-zeroes
0076-minimum-window-substring
0128-longest-consecutive-sequence
0133-clone-graph
0138-copy-list-with-random-pointer
0139-word-break
0141-linked-list-cycle
0160-intersection-of-two-linked-lists
0169-majority-element
0217-contains-duplicate
0229-majority-element-ii
0242-valid-anagram
0347-top-k-frequent-elements
0424-longest-repeating-character-replacement
0567-permutation-in-string
0621-task-scheduler
1023-time-based-key-value-store
1469-minimum-number-of-steps-to-make-two-strings-anagram

Sorting

0015-3sum
0018-4sum
0049-group-anagrams
0056-merge-intervals
0075-sort-colors
0088-merge-sorted-array
0169-majority-element
0215-kth-largest-element-in-an-array
0217-contains-duplicate
0229-majority-element-ii
0242-valid-anagram
0295-find-median-from-data-stream
0347-top-k-frequent-elements
0455-assign-cookies
0621-task-scheduler
0883-car-fleet
1014-k-closest-points-to-origin

String

0003-longest-substring-without-repeating-characters
0017-letter-combinations-of-a-phone-number
0020-valid-parentheses
0022-generate-parentheses
0049-group-anagrams
0076-minimum-window-substring
0079-word-search
0125-valid-palindrome
0131-palindrome-partitioning
0139-word-break
0242-valid-anagram
0392-is-subsequence
0424-longest-repeating-character-replacement
0567-permutation-in-string
1023-time-based-key-value-store
1469-minimum-number-of-steps-to-make-two-strings-anagram

Divide and Conquer

0004-median-of-two-sorted-arrays
0023-merge-k-sorted-lists
0053-maximum-subarray
0169-majority-element
0215-kth-largest-element-in-an-array
0347-top-k-frequent-elements
0493-reverse-pairs
1014-k-closest-points-to-origin

Heap (Priority Queue)

0023-merge-k-sorted-lists
0215-kth-largest-element-in-an-array
0239-sliding-window-maximum
0295-find-median-from-data-stream
0347-top-k-frequent-elements
0621-task-scheduler
0789-kth-largest-element-in-a-stream
1014-k-closest-points-to-origin
1127-last-stone-weight

Bucket Sort

0347-top-k-frequent-elements

Counting

0169-majority-element
0229-majority-element-ii
0347-top-k-frequent-elements
0621-task-scheduler
1469-minimum-number-of-steps-to-make-two-strings-anagram

Quickselect

0215-kth-largest-element-in-an-array
0347-top-k-frequent-elements
1014-k-closest-points-to-origin

Prefix Sum

0238-product-of-array-except-self

Matrix

0036-valid-sudoku
0048-rotate-image
0073-set-matrix-zeroes
0074-search-a-2d-matrix
0079-word-search
0130-surrounded-regions
0200-number-of-islands
0417-pacific-atlantic-water-flow
0695-max-area-of-island
1036-rotting-oranges

Union Find

0128-longest-consecutive-sequence
0130-surrounded-regions
0200-number-of-islands
0695-max-area-of-island

Two Pointers

0011-container-with-most-water
0015-3sum
0018-4sum
0019-remove-nth-node-from-end-of-list
0026-remove-duplicates-from-sorted-array
0031-next-permutation
0042-trapping-rain-water
0061-rotate-list
0075-sort-colors
0088-merge-sorted-array
0125-valid-palindrome
0141-linked-list-cycle
0143-reorder-list
0160-intersection-of-two-linked-lists
0167-two-sum-ii-input-array-is-sorted
0234-palindrome-linked-list
0287-find-the-duplicate-number
0295-find-median-from-data-stream
0392-is-subsequence
0455-assign-cookies
0567-permutation-in-string
0908-middle-of-the-linked-list

Binary Search

0004-median-of-two-sorted-arrays
0033-search-in-rotated-sorted-array
0074-search-a-2d-matrix
0153-find-minimum-in-rotated-sorted-array
0167-two-sum-ii-input-array-is-sorted
0287-find-the-duplicate-number
0493-reverse-pairs
0540-single-element-in-a-sorted-array
0792-binary-search
0907-koko-eating-bananas
1023-time-based-key-value-store

Greedy

0011-container-with-most-water
0455-assign-cookies
0621-task-scheduler

Dynamic Programming

0022-generate-parentheses
0042-trapping-rain-water
0053-maximum-subarray
0062-unique-paths
0118-pascals-triangle
0121-best-time-to-buy-and-sell-stock
0131-palindrome-partitioning
0139-word-break
0392-is-subsequence

Stack

0020-valid-parentheses
0042-trapping-rain-water
0084-largest-rectangle-in-histogram
0114-flatten-binary-tree-to-linked-list
0143-reorder-list
0150-evaluate-reverse-polish-notation
0155-min-stack
0234-palindrome-linked-list
0739-daily-temperatures
0883-car-fleet

Monotonic Stack

0042-trapping-rain-water
0084-largest-rectangle-in-histogram
0739-daily-temperatures
0883-car-fleet

Sliding Window

0003-longest-substring-without-repeating-characters
0076-minimum-window-substring
0239-sliding-window-maximum
0424-longest-repeating-character-replacement
0567-permutation-in-string

Queue

0239-sliding-window-maximum

Monotonic Queue

0239-sliding-window-maximum

Design

0155-min-stack
0295-find-median-from-data-stream
0789-kth-largest-element-in-a-stream
1023-time-based-key-value-store

Math

0002-add-two-numbers
0048-rotate-image
0050-powx-n
0060-permutation-sequence
0062-unique-paths
0150-evaluate-reverse-polish-notation
1014-k-closest-points-to-origin

Backtracking

0017-letter-combinations-of-a-phone-number
0022-generate-parentheses
0039-combination-sum
0040-combination-sum-ii
0046-permutations
0078-subsets
0079-word-search
0090-subsets-ii
0131-palindrome-partitioning

Tree

0100-same-tree
0104-maximum-depth-of-binary-tree
0110-balanced-binary-tree
0114-flatten-binary-tree-to-linked-list
0199-binary-tree-right-side-view
0226-invert-binary-tree
0230-kth-smallest-element-in-a-bst
0235-lowest-common-ancestor-of-a-binary-search-tree
0543-diameter-of-binary-tree
0572-subtree-of-another-tree
0662-maximum-width-of-binary-tree
0789-kth-largest-element-in-a-stream
1544-count-good-nodes-in-binary-tree

Depth-First Search

0100-same-tree
0104-maximum-depth-of-binary-tree
0110-balanced-binary-tree
0114-flatten-binary-tree-to-linked-list
0130-surrounded-regions
0133-clone-graph
0199-binary-tree-right-side-view
0200-number-of-islands
0207-course-schedule
0226-invert-binary-tree
0230-kth-smallest-element-in-a-bst
0235-lowest-common-ancestor-of-a-binary-search-tree
0417-pacific-atlantic-water-flow
0543-diameter-of-binary-tree
0572-subtree-of-another-tree
0662-maximum-width-of-binary-tree
0695-max-area-of-island
1544-count-good-nodes-in-binary-tree

Breadth-First Search

0100-same-tree
0104-maximum-depth-of-binary-tree
0130-surrounded-regions
0133-clone-graph
0199-binary-tree-right-side-view
0200-number-of-islands
0207-course-schedule
0226-invert-binary-tree
0417-pacific-atlantic-water-flow
0662-maximum-width-of-binary-tree
0695-max-area-of-island
1036-rotting-oranges
1544-count-good-nodes-in-binary-tree

Binary Tree

0100-same-tree
0104-maximum-depth-of-binary-tree
0110-balanced-binary-tree
0114-flatten-binary-tree-to-linked-list
0199-binary-tree-right-side-view
0226-invert-binary-tree
0230-kth-smallest-element-in-a-bst
0235-lowest-common-ancestor-of-a-binary-search-tree
0543-diameter-of-binary-tree
0572-subtree-of-another-tree
0662-maximum-width-of-binary-tree
0789-kth-largest-element-in-a-stream
1544-count-good-nodes-in-binary-tree

String Matching

0572-subtree-of-another-tree

Hash Function

0572-subtree-of-another-tree

Binary Search Tree

0230-kth-smallest-element-in-a-bst
0235-lowest-common-ancestor-of-a-binary-search-tree
0789-kth-largest-element-in-a-stream

Linked List

0002-add-two-numbers
0019-remove-nth-node-from-end-of-list
0021-merge-two-sorted-lists
0023-merge-k-sorted-lists
0025-reverse-nodes-in-k-group
0061-rotate-list
0114-flatten-binary-tree-to-linked-list
0138-copy-list-with-random-pointer
0141-linked-list-cycle
0143-reorder-list
0160-intersection-of-two-linked-lists
0206-reverse-linked-list
0234-palindrome-linked-list
0237-delete-node-in-a-linked-list
0908-middle-of-the-linked-list

Recursion

0002-add-two-numbers
0021-merge-two-sorted-lists
0025-reverse-nodes-in-k-group
0050-powx-n
0060-permutation-sequence
0143-reorder-list
0206-reverse-linked-list
0234-palindrome-linked-list

Bit Manipulation

0078-subsets
0090-subsets-ii
0287-find-the-duplicate-number

Merge Sort

0023-merge-k-sorted-lists
0493-reverse-pairs

Data Stream

0295-find-median-from-data-stream
0789-kth-largest-element-in-a-stream

Geometry

1014-k-closest-points-to-origin

Graph

0133-clone-graph
0207-course-schedule

Topological Sort

0207-course-schedule

Combinatorics

0062-unique-paths

Binary Indexed Tree

0493-reverse-pairs

Segment Tree

0493-reverse-pairs

Ordered Set

0493-reverse-pairs

Trie

0139-word-break

Memoization

0139-word-break

Releases

No releases published

Packages

 
 
 

Contributors

Languages