Skip to content

rajsrm2021/DSA-Journey---JAVA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

LeetCode Topics

Hash Table

0003-longest-substring-without-repeating-characters
0030-substring-with-concatenation-of-all-words
0036-valid-sudoku
0037-sudoku-solver
0041-first-missing-positive
0049-group-anagrams
0076-minimum-window-substring
0141-linked-list-cycle
0169-majority-element
0208-implement-trie-prefix-tree
0229-majority-element-ii
0347-top-k-frequent-elements
0621-task-scheduler
0870-magic-squares-in-grid
1460-number-of-substrings-containing-all-three-characters

Linked List

0002-add-two-numbers
0021-merge-two-sorted-lists
0114-flatten-binary-tree-to-linked-list
0141-linked-list-cycle
0147-insertion-sort-list

Two Pointers

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
0042-trapping-rain-water
0080-remove-duplicates-from-sorted-array-ii
0088-merge-sorted-array
0141-linked-list-cycle
0151-reverse-words-in-a-string
0167-two-sum-ii-input-array-is-sorted
0189-rotate-array
0455-assign-cookies
0658-find-k-closest-elements
0719-find-k-th-smallest-pair-distance

Array

0011-container-with-most-water
0015-3sum
0026-remove-duplicates-from-sorted-array
0027-remove-element
0033-search-in-rotated-sorted-array
0035-search-insert-position
0036-valid-sudoku
0037-sudoku-solver
0041-first-missing-positive
0042-trapping-rain-water
0045-jump-game-ii
0049-group-anagrams
0054-spiral-matrix
0055-jump-game
0056-merge-intervals
0057-insert-interval
0080-remove-duplicates-from-sorted-array-ii
0084-largest-rectangle-in-histogram
0088-merge-sorted-array
0121-best-time-to-buy-and-sell-stock
0122-best-time-to-buy-and-sell-stock-ii
0123-best-time-to-buy-and-sell-stock-iii
0134-gas-station
0153-find-minimum-in-rotated-sorted-array
0167-two-sum-ii-input-array-is-sorted
0169-majority-element
0189-rotate-array
0200-number-of-islands
0209-minimum-size-subarray-sum
0215-kth-largest-element-in-an-array
0229-majority-element-ii
0238-product-of-array-except-self
0274-h-index
0347-top-k-frequent-elements
0452-minimum-number-of-arrows-to-burst-balloons
0455-assign-cookies
0498-diagonal-traverse
0540-single-element-in-a-sorted-array
0621-task-scheduler
0658-find-k-closest-elements
0719-find-k-th-smallest-pair-distance
0870-magic-squares-in-grid
0921-spiral-matrix-iii
1240-stone-game-ii
1293-three-consecutive-odds
1616-minimum-difference-between-largest-and-smallest-value-in-three-moves
1720-crawler-log-folder
1803-average-waiting-time
2846-robot-collisions
3463-alternating-groups-i

Matrix

0036-valid-sudoku
0037-sudoku-solver
0054-spiral-matrix
0200-number-of-islands
0498-diagonal-traverse
0870-magic-squares-in-grid
0921-spiral-matrix-iii

Simulation

0043-multiply-strings
0054-spiral-matrix
0498-diagonal-traverse
0921-spiral-matrix-iii
1803-average-waiting-time
2645-pass-the-pillow
2846-robot-collisions

Stack

0042-trapping-rain-water
0071-simplify-path
0084-largest-rectangle-in-histogram
0114-flatten-binary-tree-to-linked-list
0155-min-stack
1298-reverse-substrings-between-each-pair-of-parentheses
1720-crawler-log-folder
2846-robot-collisions

Design

0155-min-stack
0208-implement-trie-prefix-tree

String

0003-longest-substring-without-repeating-characters
0006-zigzag-conversion
0014-longest-common-prefix
0028-find-the-index-of-the-first-occurrence-in-a-string
0030-substring-with-concatenation-of-all-words
0038-count-and-say
0043-multiply-strings
0049-group-anagrams
0058-length-of-last-word
0071-simplify-path
0076-minimum-window-substring
0151-reverse-words-in-a-string
0208-implement-trie-prefix-tree
0257-binary-tree-paths
1298-reverse-substrings-between-each-pair-of-parentheses
1460-number-of-substrings-containing-all-three-characters
1720-crawler-log-folder
2217-step-by-step-directions-from-a-binary-tree-node-to-another

Greedy

0011-container-with-most-water
0045-jump-game-ii
0055-jump-game
0122-best-time-to-buy-and-sell-stock-ii
0134-gas-station
0452-minimum-number-of-arrows-to-burst-balloons
0455-assign-cookies
0621-task-scheduler
1515-find-the-minimum-number-of-fibonacci-numbers-whose-sum-is-k
1616-minimum-difference-between-largest-and-smallest-value-in-three-moves

Sorting

0015-3sum
0049-group-anagrams
0056-merge-intervals
0088-merge-sorted-array
0147-insertion-sort-list
0169-majority-element
0215-kth-largest-element-in-an-array
0229-majority-element-ii
0274-h-index
0347-top-k-frequent-elements
0452-minimum-number-of-arrows-to-burst-balloons
0455-assign-cookies
0621-task-scheduler
0658-find-k-closest-elements
0719-find-k-th-smallest-pair-distance
1616-minimum-difference-between-largest-and-smallest-value-in-three-moves
2846-robot-collisions

Monotonic Stack

0042-trapping-rain-water
0084-largest-rectangle-in-histogram

Divide and Conquer

0169-majority-element
0215-kth-largest-element-in-an-array
0347-top-k-frequent-elements

Heap (Priority Queue)

0215-kth-largest-element-in-an-array
0347-top-k-frequent-elements
0621-task-scheduler
0658-find-k-closest-elements

Quickselect

0215-kth-largest-element-in-an-array
0347-top-k-frequent-elements

Counting

0169-majority-element
0229-majority-element-ii
0347-top-k-frequent-elements
0621-task-scheduler

Math

0002-add-two-numbers
0043-multiply-strings
0189-rotate-array
0650-2-keys-keyboard
0870-magic-squares-in-grid
1240-stone-game-ii
1515-find-the-minimum-number-of-fibonacci-numbers-whose-sum-is-k
2645-pass-the-pillow

Binary Search

0033-search-in-rotated-sorted-array
0035-search-insert-position
0153-find-minimum-in-rotated-sorted-array
0167-two-sum-ii-input-array-is-sorted
0209-minimum-size-subarray-sum
0278-first-bad-version
0540-single-element-in-a-sorted-array
0658-find-k-closest-elements
0719-find-k-th-smallest-pair-distance

Sliding Window

0003-longest-substring-without-repeating-characters
0030-substring-with-concatenation-of-all-words
0076-minimum-window-substring
0209-minimum-size-subarray-sum
0658-find-k-closest-elements
1460-number-of-substrings-containing-all-three-characters
3463-alternating-groups-i

Bucket Sort

0347-top-k-frequent-elements

Dynamic Programming

0042-trapping-rain-water
0045-jump-game-ii
0055-jump-game
0121-best-time-to-buy-and-sell-stock
0122-best-time-to-buy-and-sell-stock-ii
0123-best-time-to-buy-and-sell-stock-iii
0650-2-keys-keyboard
1240-stone-game-ii

Interactive

0278-first-bad-version

Backtracking

0037-sudoku-solver
0257-binary-tree-paths

Tree

0114-flatten-binary-tree-to-linked-list
0257-binary-tree-paths
2217-step-by-step-directions-from-a-binary-tree-node-to-another

Depth-First Search

0114-flatten-binary-tree-to-linked-list
0200-number-of-islands
0257-binary-tree-paths
2217-step-by-step-directions-from-a-binary-tree-node-to-another

Binary Tree

0114-flatten-binary-tree-to-linked-list
0257-binary-tree-paths
2217-step-by-step-directions-from-a-binary-tree-node-to-another

Breadth-First Search

0200-number-of-islands

Union Find

0200-number-of-islands

Counting Sort

0274-h-index

String Matching

0028-find-the-index-of-the-first-occurrence-in-a-string

Prefix Sum

0209-minimum-size-subarray-sum
0238-product-of-array-except-self
1240-stone-game-ii

Game Theory

1240-stone-game-ii

Trie

0014-longest-common-prefix
0208-implement-trie-prefix-tree

Database

0197-rising-temperature
0584-find-customer-referee
0595-big-countries
0620-not-boring-movies
1153-product-sales-analysis-i
1258-article-views-i
1509-replace-employee-id-with-the-unique-identifier
1724-customer-who-visited-but-did-not-make-any-transactions
1827-invalid-tweets
1908-recyclable-and-low-fat-products

Recursion

0002-add-two-numbers
0021-merge-two-sorted-lists