/LCX-Java

Primary LanguageJavaMIT LicenseMIT

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

LeetCode Topics

Array

0001-two-sum
0004-median-of-two-sorted-arrays
0042-trapping-rain-water
0046-permutations
0078-subsets
0079-word-search
0090-subsets-ii
0121-best-time-to-buy-and-sell-stock
0139-word-break
0140-word-break-ii
0238-product-of-array-except-self
0472-concatenated-words
0735-asteroid-collision
1036-rotting-oranges

Hash Table

0001-two-sum
0013-roman-to-integer
0138-copy-list-with-random-pointer
0139-word-break
0140-word-break-ii
0146-lru-cache
0438-find-all-anagrams-in-a-string
0778-reorganize-string

String

0005-longest-palindromic-substring
0013-roman-to-integer
0020-valid-parentheses
0022-generate-parentheses
0079-word-search
0139-word-break
0140-word-break-ii
0211-design-add-and-search-words-data-structure
0438-find-all-anagrams-in-a-string
0472-concatenated-words
0778-reorganize-string

Stack

0020-valid-parentheses
0042-trapping-rain-water
0735-asteroid-collision

Tree

0100-same-tree
0101-symmetric-tree
0102-binary-tree-level-order-traversal
0109-convert-sorted-list-to-binary-search-tree
0116-populating-next-right-pointers-in-each-node
0124-binary-tree-maximum-path-sum
0543-diameter-of-binary-tree

Depth-First Search

0100-same-tree
0101-symmetric-tree
0116-populating-next-right-pointers-in-each-node
0124-binary-tree-maximum-path-sum
0211-design-add-and-search-words-data-structure
0472-concatenated-words
0543-diameter-of-binary-tree
0766-flatten-a-multilevel-doubly-linked-list

Binary Tree

0100-same-tree
0101-symmetric-tree
0102-binary-tree-level-order-traversal
0109-convert-sorted-list-to-binary-search-tree
0116-populating-next-right-pointers-in-each-node
0124-binary-tree-maximum-path-sum
0543-diameter-of-binary-tree

Breadth-First Search

0100-same-tree
0101-symmetric-tree
0102-binary-tree-level-order-traversal
0116-populating-next-right-pointers-in-each-node
1036-rotting-oranges

Linked List

0023-merge-k-sorted-lists
0061-rotate-list
0109-convert-sorted-list-to-binary-search-tree
0116-populating-next-right-pointers-in-each-node
0138-copy-list-with-random-pointer
0146-lru-cache
0766-flatten-a-multilevel-doubly-linked-list

Two Pointers

0005-longest-palindromic-substring
0042-trapping-rain-water
0061-rotate-list
0295-find-median-from-data-stream

Design

0146-lru-cache
0211-design-add-and-search-words-data-structure
0295-find-median-from-data-stream

Sorting

0295-find-median-from-data-stream
0778-reorganize-string

Heap (Priority Queue)

0023-merge-k-sorted-lists
0295-find-median-from-data-stream
0778-reorganize-string

Data Stream

0295-find-median-from-data-stream

Greedy

0778-reorganize-string

Counting

0778-reorganize-string

Divide and Conquer

0004-median-of-two-sorted-arrays
0023-merge-k-sorted-lists
0109-convert-sorted-list-to-binary-search-tree

Merge Sort

0023-merge-k-sorted-lists

Trie

0139-word-break
0140-word-break-ii
0211-design-add-and-search-words-data-structure
0472-concatenated-words

Dynamic Programming

0005-longest-palindromic-substring
0022-generate-parentheses
0042-trapping-rain-water
0121-best-time-to-buy-and-sell-stock
0124-binary-tree-maximum-path-sum
0139-word-break
0140-word-break-ii
0472-concatenated-words

Math

0013-roman-to-integer

Doubly-Linked List

0146-lru-cache
0766-flatten-a-multilevel-doubly-linked-list

Simulation

0735-asteroid-collision

Matrix

0079-word-search
1036-rotting-oranges

Sliding Window

0438-find-all-anagrams-in-a-string

Memoization

0139-word-break
0140-word-break-ii

Backtracking

0022-generate-parentheses
0046-permutations
0078-subsets
0079-word-search
0090-subsets-ii
0140-word-break-ii

Prefix Sum

0238-product-of-array-except-self

Monotonic Stack

0042-trapping-rain-water

Bit Manipulation

0078-subsets
0090-subsets-ii

Binary Search

0004-median-of-two-sorted-arrays

Binary Search Tree

0109-convert-sorted-list-to-binary-search-tree