Skip to content

kensac/Leetcode-v2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leetcode-v2

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
0042-trapping-rain-water
0066-plus-one
0088-merge-sorted-array
0128-longest-consecutive-sequence
0134-gas-station
0167-two-sum-ii-input-array-is-sorted
0169-majority-element
0189-rotate-array
0215-kth-largest-element-in-an-array
0217-contains-duplicate
0682-baseball-game
0917-boats-to-save-people
1046-max-consecutive-ones-iii
2058-concatenation-of-array

Hash Table

0001-two-sum
0128-longest-consecutive-sequence
0141-linked-list-cycle
0169-majority-element
0217-contains-duplicate

Math

0066-plus-one
0168-excel-sheet-column-title
0189-rotate-array

String

0020-valid-parentheses
0125-valid-palindrome
0168-excel-sheet-column-title
0344-reverse-string
0394-decode-string
0680-valid-palindrome-ii
1894-merge-strings-alternately

Simulation

0682-baseball-game
2058-concatenation-of-array

Sorting

0015-3sum
0088-merge-sorted-array
0169-majority-element
0215-kth-largest-element-in-an-array
0217-contains-duplicate
0917-boats-to-save-people

Stack

0020-valid-parentheses
0042-trapping-rain-water
0094-binary-tree-inorder-traversal
0394-decode-string
0682-baseball-game

Tree

0094-binary-tree-inorder-traversal
0102-binary-tree-level-order-traversal
0104-maximum-depth-of-binary-tree
0124-binary-tree-maximum-path-sum
0226-invert-binary-tree
0236-lowest-common-ancestor-of-a-binary-tree
0543-diameter-of-binary-tree

Depth-First Search

0094-binary-tree-inorder-traversal
0104-maximum-depth-of-binary-tree
0124-binary-tree-maximum-path-sum
0210-course-schedule-ii
0226-invert-binary-tree
0236-lowest-common-ancestor-of-a-binary-tree
0543-diameter-of-binary-tree

Binary Tree

0094-binary-tree-inorder-traversal
0102-binary-tree-level-order-traversal
0104-maximum-depth-of-binary-tree
0124-binary-tree-maximum-path-sum
0226-invert-binary-tree
0236-lowest-common-ancestor-of-a-binary-tree
0543-diameter-of-binary-tree

Breadth-First Search

0102-binary-tree-level-order-traversal
0104-maximum-depth-of-binary-tree
0210-course-schedule-ii
0226-invert-binary-tree

Two Pointers

0011-container-with-most-water
0015-3sum
0042-trapping-rain-water
0088-merge-sorted-array
0125-valid-palindrome
0141-linked-list-cycle
0167-two-sum-ii-input-array-is-sorted
0189-rotate-array
0344-reverse-string
0680-valid-palindrome-ii
0917-boats-to-save-people
1894-merge-strings-alternately

Greedy

0011-container-with-most-water
0134-gas-station
0680-valid-palindrome-ii
0917-boats-to-save-people

Binary Search

0167-two-sum-ii-input-array-is-sorted
1046-max-consecutive-ones-iii

Dynamic Programming

0042-trapping-rain-water
0124-binary-tree-maximum-path-sum

Monotonic Stack

0042-trapping-rain-water

Divide and Conquer

0169-majority-element
0215-kth-largest-element-in-an-array

Counting

0169-majority-element

Linked List

0141-linked-list-cycle
0206-reverse-linked-list

Recursion

0206-reverse-linked-list
0394-decode-string

Heap (Priority Queue)

0215-kth-largest-element-in-an-array

Quickselect

0215-kth-largest-element-in-an-array

Sliding Window

1046-max-consecutive-ones-iii

Prefix Sum

1046-max-consecutive-ones-iii

Union Find

0128-longest-consecutive-sequence

Graph

0210-course-schedule-ii

Topological Sort

0210-course-schedule-ii

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