Skip to content

A collection of LeetCode questions to ace the coding interview! - Created using [LeetHub v2](https://github.com/arunbhardwaj/LeetHub-2.0)

Notifications You must be signed in to change notification settings

MohamedBarghush/LeetCode-Answers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode-Answers

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

LeetCode Topics

Array

0001-two-sum
0011-container-with-most-water
0015-3sum
0034-find-first-and-last-position-of-element-in-sorted-array
0035-search-insert-position
0036-valid-sudoku
0056-merge-intervals
0057-insert-interval
0066-plus-one
0121-best-time-to-buy-and-sell-stock
0128-longest-consecutive-sequence
0162-find-peak-element
0167-two-sum-ii-input-array-is-sorted
0169-majority-element
0189-rotate-array
0209-minimum-size-subarray-sum
0219-contains-duplicate-ii
0228-summary-ranges
0452-minimum-number-of-arrows-to-burst-balloons
1468-check-if-n-and-its-double-exist
2232-adding-spaces-to-a-string

Dynamic Programming

0121-best-time-to-buy-and-sell-stock
0392-is-subsequence
3140-count-visited-nodes-in-a-directed-graph

Hash Table

0001-two-sum
0003-longest-substring-without-repeating-characters
0012-integer-to-roman
0036-valid-sudoku
0128-longest-consecutive-sequence
0138-copy-list-with-random-pointer
0169-majority-element
0202-happy-number
0205-isomorphic-strings
0219-contains-duplicate-ii
0242-valid-anagram
0290-word-pattern
0383-ransom-note
1468-check-if-n-and-its-double-exist

Divide and Conquer

0169-majority-element

Sorting

0015-3sum
0056-merge-intervals
0169-majority-element
0242-valid-anagram
0452-minimum-number-of-arrows-to-burst-balloons
1468-check-if-n-and-its-double-exist

Counting

0169-majority-element
0383-ransom-note

String

0003-longest-substring-without-repeating-characters
0012-integer-to-roman
0020-valid-parentheses
0028-find-the-index-of-the-first-occurrence-in-a-string
0058-length-of-last-word
0067-add-binary
0071-simplify-path
0125-valid-palindrome
0205-isomorphic-strings
0242-valid-anagram
0290-word-pattern
0383-ransom-note
0392-is-subsequence
1566-check-if-a-word-occurs-as-a-prefix-of-any-word-in-a-sentence
2232-adding-spaces-to-a-string

Stack

0020-valid-parentheses
0071-simplify-path
0155-min-stack

Two Pointers

0011-container-with-most-water
0015-3sum
0028-find-the-index-of-the-first-occurrence-in-a-string
0125-valid-palindrome
0141-linked-list-cycle
0167-two-sum-ii-input-array-is-sorted
0189-rotate-array
0202-happy-number
0392-is-subsequence
1468-check-if-n-and-its-double-exist
1566-check-if-a-word-occurs-as-a-prefix-of-any-word-in-a-sentence
2232-adding-spaces-to-a-string

String Matching

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

Linked List

0021-merge-two-sorted-lists
0092-reverse-linked-list-ii
0138-copy-list-with-random-pointer
0141-linked-list-cycle

Math

0009-palindrome-number
0012-integer-to-roman
0066-plus-one
0067-add-binary
0069-sqrtx
0189-rotate-array
0202-happy-number

Recursion

0021-merge-two-sorted-lists

Bit Manipulation

0067-add-binary

Simulation

0067-add-binary
2232-adding-spaces-to-a-string

Binary Search

0034-find-first-and-last-position-of-element-in-sorted-array
0035-search-insert-position
0069-sqrtx
0162-find-peak-element
0167-two-sum-ii-input-array-is-sorted
0209-minimum-size-subarray-sum
1468-check-if-n-and-its-double-exist

Sliding Window

0003-longest-substring-without-repeating-characters
0209-minimum-size-subarray-sum
0219-contains-duplicate-ii

Union Find

0128-longest-consecutive-sequence

Greedy

0011-container-with-most-water
0452-minimum-number-of-arrows-to-burst-balloons

Graph

3140-count-visited-nodes-in-a-directed-graph

Memoization

3140-count-visited-nodes-in-a-directed-graph

Design

0155-min-stack

Matrix

0036-valid-sudoku

Prefix Sum

0209-minimum-size-subarray-sum

About

A collection of LeetCode questions to ace the coding interview! - Created using [LeetHub v2](https://github.com/arunbhardwaj/LeetHub-2.0)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages