Skip to content

Deepthi-0411/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

String

0003-longest-substring-without-repeating-characters
0005-longest-palindromic-substring
0014-longest-common-prefix
0020-valid-parentheses
0028-find-the-index-of-the-first-occurrence-in-a-string
0049-group-anagrams
0058-length-of-last-word
0125-valid-palindrome
0151-reverse-words-in-a-string
0242-valid-anagram
0344-reverse-string
0383-ransom-note
0412-fizz-buzz
0459-repeated-substring-pattern
0686-repeated-string-match
0742-to-lower-case
0782-jewels-and-stones
1205-defanging-an-ip-address
1651-shuffle-string
1781-check-if-two-string-arrays-are-equivalent
1797-goal-parser-interpretation
1960-check-if-the-sentence-is-pangram
2137-final-value-of-variable-after-performing-operations
2219-maximum-number-of-words-found-in-sentences

Stack

0020-valid-parentheses
0094-binary-tree-inorder-traversal

Array

0001-two-sum
0004-median-of-two-sorted-arrays
0011-container-with-most-water
0026-remove-duplicates-from-sorted-array
0027-remove-element
0035-search-insert-position
0048-rotate-image
0049-group-anagrams
0053-maximum-subarray
0073-set-matrix-zeroes
0074-search-a-2d-matrix
0075-sort-colors
0081-search-in-rotated-sorted-array-ii
0121-best-time-to-buy-and-sell-stock
0122-best-time-to-buy-and-sell-stock-ii
0128-longest-consecutive-sequence
0136-single-number
0153-find-minimum-in-rotated-sorted-array
0169-majority-element
0215-kth-largest-element-in-an-array
0217-contains-duplicate
0238-product-of-array-except-self
0283-move-zeroes
0347-top-k-frequent-elements
0350-intersection-of-two-arrays-ii
0414-third-maximum-number
0532-k-diff-pairs-in-an-array
0566-reshape-the-matrix
0628-maximum-product-of-three-numbers
0643-maximum-average-subarray-i
0745-find-smallest-letter-greater-than-target
0748-largest-number-at-least-twice-of-others
0898-transpose-matrix
0978-valid-mountain-array
1014-k-closest-points-to-origin
1019-squares-of-a-sorted-array
1482-how-many-numbers-are-smaller-than-the-current-number
1651-shuffle-string
1781-check-if-two-string-arrays-are-equivalent
1791-richest-customer-wealth
2137-final-value-of-variable-after-performing-operations
2219-maximum-number-of-words-found-in-sentences

Divide and Conquer

0004-median-of-two-sorted-arrays
0053-maximum-subarray
0169-majority-element
0215-kth-largest-element-in-an-array
0347-top-k-frequent-elements
1014-k-closest-points-to-origin

Dynamic Programming

0005-longest-palindromic-substring
0053-maximum-subarray
0070-climbing-stairs
0121-best-time-to-buy-and-sell-stock
0122-best-time-to-buy-and-sell-stock-ii

Hash Table

0001-two-sum
0003-longest-substring-without-repeating-characters
0049-group-anagrams
0073-set-matrix-zeroes
0128-longest-consecutive-sequence
0141-linked-list-cycle
0169-majority-element
0202-happy-number
0217-contains-duplicate
0242-valid-anagram
0347-top-k-frequent-elements
0350-intersection-of-two-arrays-ii
0383-ransom-note
0532-k-diff-pairs-in-an-array
0782-jewels-and-stones
1482-how-many-numbers-are-smaller-than-the-current-number
1960-check-if-the-sentence-is-pangram

Linked List

0002-add-two-numbers
0019-remove-nth-node-from-end-of-list
0141-linked-list-cycle
0206-reverse-linked-list

Math

0002-add-two-numbers
0048-rotate-image
0069-sqrtx
0070-climbing-stairs
0202-happy-number
0231-power-of-two
0326-power-of-three
0342-power-of-four
0412-fizz-buzz
0628-maximum-product-of-three-numbers
1014-k-closest-points-to-origin
1448-maximum-69-number
3600-find-the-k-th-character-in-string-game-i

Recursion

0002-add-two-numbers
0206-reverse-linked-list
0231-power-of-two
0326-power-of-three
0342-power-of-four
3600-find-the-k-th-character-in-string-game-i

Bit Manipulation

0136-single-number
0231-power-of-two
0342-power-of-four
3600-find-the-k-th-character-in-string-game-i

Sorting

0049-group-anagrams
0075-sort-colors
0169-majority-element
0215-kth-largest-element-in-an-array
0217-contains-duplicate
0242-valid-anagram
0347-top-k-frequent-elements
0350-intersection-of-two-arrays-ii
0414-third-maximum-number
0532-k-diff-pairs-in-an-array
0628-maximum-product-of-three-numbers
0748-largest-number-at-least-twice-of-others
1014-k-closest-points-to-origin
1019-squares-of-a-sorted-array
1482-how-many-numbers-are-smaller-than-the-current-number

Counting

0169-majority-element
0347-top-k-frequent-elements
0383-ransom-note

Two Pointers

0005-longest-palindromic-substring
0011-container-with-most-water
0019-remove-nth-node-from-end-of-list
0026-remove-duplicates-from-sorted-array
0027-remove-element
0028-find-the-index-of-the-first-occurrence-in-a-string
0075-sort-colors
0125-valid-palindrome
0141-linked-list-cycle
0151-reverse-words-in-a-string
0202-happy-number
0283-move-zeroes
0344-reverse-string
0350-intersection-of-two-arrays-ii
0532-k-diff-pairs-in-an-array
1019-squares-of-a-sorted-array

Sliding Window

0003-longest-substring-without-repeating-characters
0643-maximum-average-subarray-i

Binary Search

0004-median-of-two-sorted-arrays
0035-search-insert-position
0069-sqrtx
0074-search-a-2d-matrix
0081-search-in-rotated-sorted-array-ii
0153-find-minimum-in-rotated-sorted-array
0350-intersection-of-two-arrays-ii
0532-k-diff-pairs-in-an-array
0745-find-smallest-letter-greater-than-target

String Matching

0028-find-the-index-of-the-first-occurrence-in-a-string
0459-repeated-substring-pattern
0686-repeated-string-match

Memoization

0070-climbing-stairs

Trie

0014-longest-common-prefix

Greedy

0011-container-with-most-water
0122-best-time-to-buy-and-sell-stock-ii
1448-maximum-69-number

Matrix

0048-rotate-image
0073-set-matrix-zeroes
0074-search-a-2d-matrix
0566-reshape-the-matrix
0898-transpose-matrix
1791-richest-customer-wealth

Simulation

0412-fizz-buzz
0566-reshape-the-matrix
0898-transpose-matrix
2137-final-value-of-variable-after-performing-operations
3600-find-the-k-th-character-in-string-game-i

Database

0175-combine-two-tables
0176-second-highest-salary
0181-employees-earning-more-than-their-managers
0182-duplicate-emails
0183-customers-who-never-order
0196-delete-duplicate-emails
0197-rising-temperature
0584-find-customer-referee
0586-customer-placing-the-largest-number-of-orders
0595-big-countries
0596-classes-with-at-least-5-students
0607-sales-person
0620-not-boring-movies
0627-swap-salary
1523-capital-gainloss
1724-customer-who-visited-but-did-not-make-any-transactions
1877-find-followers-count
1908-recyclable-and-low-fat-products

Counting Sort

1482-how-many-numbers-are-smaller-than-the-current-number

Heap (Priority Queue)

0215-kth-largest-element-in-an-array
0347-top-k-frequent-elements
1014-k-closest-points-to-origin

Bucket Sort

0347-top-k-frequent-elements

Quickselect

0215-kth-largest-element-in-an-array
0347-top-k-frequent-elements
1014-k-closest-points-to-origin

Prefix Sum

0238-product-of-array-except-self

Union Find

0128-longest-consecutive-sequence

Tree

0094-binary-tree-inorder-traversal
0100-same-tree

Depth-First Search

0094-binary-tree-inorder-traversal
0100-same-tree

Breadth-First Search

0100-same-tree

Binary Tree

0094-binary-tree-inorder-traversal
0100-same-tree

Geometry

1014-k-closest-points-to-origin

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