Skip to content

Gungunbansall/Leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leetcode

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

LeetCode Topics

Array

0001-two-sum
0014-longest-common-prefix
0015-3sum
0026-remove-duplicates-from-sorted-array
0033-search-in-rotated-sorted-array
0034-find-first-and-last-position-of-element-in-sorted-array
0035-search-insert-position
0045-jump-game-ii
0053-maximum-subarray
0055-jump-game
0073-set-matrix-zeroes
0081-search-in-rotated-sorted-array-ii
0136-single-number
0162-find-peak-element
0169-majority-element
0189-rotate-array
0217-contains-duplicate
0240-search-a-2d-matrix-ii
0268-missing-number
0287-find-the-duplicate-number
0540-single-element-in-a-sorted-array
0792-binary-search
0882-peak-index-in-a-mountain-array
1421-find-numbers-with-even-number-of-digits
1791-richest-customer-wealth
1829-maximum-units-on-a-truck
1878-check-if-array-is-sorted-and-rotated

Two Pointers

0015-3sum
0026-remove-duplicates-from-sorted-array
0028-find-the-index-of-the-first-occurrence-in-a-string
0125-valid-palindrome
0151-reverse-words-in-a-string
0189-rotate-array
0287-find-the-duplicate-number
0344-reverse-string
2216-delete-the-middle-node-of-a-linked-list

Hash Table

0001-two-sum
0003-longest-substring-without-repeating-characters
0073-set-matrix-zeroes
0169-majority-element
0217-contains-duplicate
0268-missing-number

Sorting

0015-3sum
0169-majority-element
0217-contains-duplicate
0268-missing-number
1829-maximum-units-on-a-truck

Dynamic Programming

0045-jump-game-ii
0053-maximum-subarray
0055-jump-game
0062-unique-paths
0070-climbing-stairs
1013-fibonacci-number

Greedy

0045-jump-game-ii
0055-jump-game
1829-maximum-units-on-a-truck
2032-largest-odd-number-in-string

Divide and Conquer

0023-merge-k-sorted-lists
0053-maximum-subarray
0169-majority-element
0240-search-a-2d-matrix-ii

Counting

0169-majority-element

String

0003-longest-substring-without-repeating-characters
0014-longest-common-prefix
0020-valid-parentheses
0028-find-the-index-of-the-first-occurrence-in-a-string
0125-valid-palindrome
0151-reverse-words-in-a-string
0344-reverse-string
2032-largest-odd-number-in-string
2389-design-a-text-editor

Linked List

0002-add-two-numbers
0021-merge-two-sorted-lists
0023-merge-k-sorted-lists
0083-remove-duplicates-from-sorted-list
0206-reverse-linked-list
2216-delete-the-middle-node-of-a-linked-list
2389-design-a-text-editor

Recursion

0002-add-two-numbers
0021-merge-two-sorted-lists
0206-reverse-linked-list
0231-power-of-two
1013-fibonacci-number

Stack

0020-valid-parentheses
0155-min-stack
0232-implement-queue-using-stacks
2389-design-a-text-editor

Design

0155-min-stack
0232-implement-queue-using-stacks
2389-design-a-text-editor

Simulation

2389-design-a-text-editor

Doubly-Linked List

2389-design-a-text-editor

Heap (Priority Queue)

0023-merge-k-sorted-lists

Merge Sort

0023-merge-k-sorted-lists

Sliding Window

0003-longest-substring-without-repeating-characters

Binary Search

0033-search-in-rotated-sorted-array
0034-find-first-and-last-position-of-element-in-sorted-array
0035-search-insert-position
0081-search-in-rotated-sorted-array-ii
0162-find-peak-element
0240-search-a-2d-matrix-ii
0268-missing-number
0278-first-bad-version
0287-find-the-duplicate-number
0367-valid-perfect-square
0540-single-element-in-a-sorted-array
0792-binary-search
0882-peak-index-in-a-mountain-array

Bit Manipulation

0136-single-number
0231-power-of-two
0268-missing-number
0287-find-the-duplicate-number

Tree

0102-binary-tree-level-order-traversal
0103-binary-tree-zigzag-level-order-traversal
0235-lowest-common-ancestor-of-a-binary-search-tree

Breadth-First Search

0102-binary-tree-level-order-traversal
0103-binary-tree-zigzag-level-order-traversal

Binary Tree

0102-binary-tree-level-order-traversal
0103-binary-tree-zigzag-level-order-traversal
0235-lowest-common-ancestor-of-a-binary-search-tree

Queue

0232-implement-queue-using-stacks

Math

0002-add-two-numbers
0007-reverse-integer
0009-palindrome-number
0062-unique-paths
0070-climbing-stairs
0189-rotate-array
0231-power-of-two
0268-missing-number
0367-valid-perfect-square
1013-fibonacci-number
1421-find-numbers-with-even-number-of-digits
2032-largest-odd-number-in-string

Depth-First Search

0235-lowest-common-ancestor-of-a-binary-search-tree

Binary Search Tree

0235-lowest-common-ancestor-of-a-binary-search-tree

Memoization

0070-climbing-stairs
1013-fibonacci-number

Combinatorics

0062-unique-paths

Matrix

0073-set-matrix-zeroes
0240-search-a-2d-matrix-ii
1791-richest-customer-wealth

Database

0176-second-highest-salary
0180-consecutive-numbers
0185-department-top-three-salaries
0577-employee-bonus
0585-investments-in-2016
0602-friend-requests-ii-who-has-the-most-friends
0610-triangle-judgement
0626-exchange-seats
1155-product-sales-analysis-iii
1182-game-play-analysis-iv
1278-product-price-at-a-given-date
1292-immediate-food-delivery-ii
1327-last-person-to-fit-in-the-bus
1415-students-and-examinations
1452-restaurant-growth
1462-list-the-products-ordered-in-a-period
1480-movie-rating
1625-group-sold-products-by-the-date
1664-find-users-with-valid-e-mails
1827-invalid-tweets
1877-find-followers-count
1882-the-number-of-employees-which-report-to-each-employee
1908-recyclable-and-low-fat-products
2057-count-salary-categories

Interactive

0278-first-bad-version

String Matching

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

Trie

0014-longest-common-prefix

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