Skip to content

niharika2k00/Leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

633 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leetcode

Collection of LeetCode questions to ace the coding interview! - Created using LeetHub

LeetCode Topics

Array

0011-container-with-most-water
0033-search-in-rotated-sorted-array
0049-group-anagrams
0053-maximum-subarray
0056-merge-intervals
0057-insert-interval
0066-plus-one
0075-sort-colors
0078-subsets
0079-word-search
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0121-best-time-to-buy-and-sell-stock
0134-gas-station
0136-single-number
0139-word-break
0150-evaluate-reverse-polish-notation
0169-majority-element
0198-house-robber
0200-number-of-islands
0217-contains-duplicate
0238-product-of-array-except-self
0268-missing-number
0283-move-zeroes
0287-find-the-duplicate-number
0322-coin-change
0416-partition-equal-subset-sum
0455-assign-cookies
0494-target-sum
0542-01-matrix
0692-top-k-frequent-words
0704-binary-search
0739-daily-temperatures
0961-n-repeated-element-in-size-2n-array
0977-squares-of-a-sorted-array
0994-rotting-oranges
1200-minimum-absolute-difference
1390-four-divisors
1975-maximum-matrix-sum
2410-maximum-matching-of-players-with-trainers
3512-minimum-operations-to-make-array-sum-divisible-by-k

Greedy

0011-container-with-most-water
0134-gas-station
0409-longest-palindrome
0455-assign-cookies
1975-maximum-matrix-sum
2410-maximum-matching-of-players-with-trainers

String

0003-longest-substring-without-repeating-characters
0017-letter-combinations-of-a-phone-number
0020-valid-parentheses
0049-group-anagrams
0067-add-binary
0079-word-search
0125-valid-palindrome
0139-word-break
0242-valid-anagram
0383-ransom-note
0409-longest-palindrome
0438-find-all-anagrams-in-a-string
0692-top-k-frequent-words

Stack

0020-valid-parentheses
0150-evaluate-reverse-polish-notation
0155-min-stack
0739-daily-temperatures

Dynamic Programming

0053-maximum-subarray
0062-unique-paths
0070-climbing-stairs
0121-best-time-to-buy-and-sell-stock
0139-word-break
0198-house-robber
0322-coin-change
0416-partition-equal-subset-sum
0494-target-sum
0542-01-matrix

Two Pointers

0011-container-with-most-water
0075-sort-colors
0125-valid-palindrome
0141-linked-list-cycle
0283-move-zeroes
0287-find-the-duplicate-number
0455-assign-cookies
0876-middle-of-the-linked-list
0977-squares-of-a-sorted-array
2410-maximum-matching-of-players-with-trainers

Hash Table

0003-longest-substring-without-repeating-characters
0017-letter-combinations-of-a-phone-number
0049-group-anagrams
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0139-word-break
0141-linked-list-cycle
0169-majority-element
0217-contains-duplicate
0242-valid-anagram
0268-missing-number
0383-ransom-note
0409-longest-palindrome
0438-find-all-anagrams-in-a-string
0692-top-k-frequent-words
0961-n-repeated-element-in-size-2n-array

Sorting

0049-group-anagrams
0056-merge-intervals
0075-sort-colors
0169-majority-element
0217-contains-duplicate
0242-valid-anagram
0268-missing-number
0455-assign-cookies
0692-top-k-frequent-words
0977-squares-of-a-sorted-array
1200-minimum-absolute-difference
2410-maximum-matching-of-players-with-trainers

Math

0009-palindrome-number
0062-unique-paths
0066-plus-one
0067-add-binary
0070-climbing-stairs
0150-evaluate-reverse-polish-notation
0268-missing-number
1390-four-divisors
3512-minimum-operations-to-make-array-sum-divisible-by-k

Binary Search

0033-search-in-rotated-sorted-array
0268-missing-number
0278-first-bad-version
0287-find-the-duplicate-number
0704-binary-search

Interactive

0278-first-bad-version

Memoization

0070-climbing-stairs
0139-word-break

Counting

0169-majority-element
0383-ransom-note
0692-top-k-frequent-words

Bit Manipulation

0067-add-binary
0078-subsets
0136-single-number
0191-number-of-1-bits
0268-missing-number
0287-find-the-duplicate-number

Simulation

0067-add-binary

Divide and Conquer

0053-maximum-subarray
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0169-majority-element
0191-number-of-1-bits

Linked List

0021-merge-two-sorted-lists
0141-linked-list-cycle
0206-reverse-linked-list
0876-middle-of-the-linked-list

Recursion

0021-merge-two-sorted-lists
0206-reverse-linked-list

Sliding Window

0003-longest-substring-without-repeating-characters
0438-find-all-anagrams-in-a-string

Prefix Sum

0238-product-of-array-except-self

Breadth-First Search

0199-binary-tree-right-side-view
0200-number-of-islands
0310-minimum-height-trees
0322-coin-change
0542-01-matrix
0994-rotting-oranges
1161-maximum-level-sum-of-a-binary-tree

Matrix

0079-word-search
0200-number-of-islands
0542-01-matrix
0994-rotting-oranges
1975-maximum-matrix-sum

Depth-First Search

0079-word-search
0098-validate-binary-search-tree
0199-binary-tree-right-side-view
0200-number-of-islands
0230-kth-smallest-element-in-a-bst
0310-minimum-height-trees
1161-maximum-level-sum-of-a-binary-tree

Union Find

0200-number-of-islands

Tree

0098-validate-binary-search-tree
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0199-binary-tree-right-side-view
0230-kth-smallest-element-in-a-bst
1161-maximum-level-sum-of-a-binary-tree

Binary Search Tree

0098-validate-binary-search-tree
0230-kth-smallest-element-in-a-bst

Binary Tree

0098-validate-binary-search-tree
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0199-binary-tree-right-side-view
0230-kth-smallest-element-in-a-bst
1161-maximum-level-sum-of-a-binary-tree

Design

0155-min-stack

Combinatorics

0062-unique-paths

Backtracking

0017-letter-combinations-of-a-phone-number
0078-subsets
0079-word-search
0494-target-sum

Trie

0139-word-break
0692-top-k-frequent-words

Graph Theory

0310-minimum-height-trees

Topological Sort

0310-minimum-height-trees

Heap (Priority Queue)

0692-top-k-frequent-words

Bucket Sort

0692-top-k-frequent-words

Monotonic Stack

0739-daily-temperatures

Database

0175-combine-two-tables
0177-nth-highest-salary
0180-consecutive-numbers
0181-employees-earning-more-than-their-managers
0182-duplicate-emails
0183-customers-who-never-order
0184-department-highest-salary
0196-delete-duplicate-emails
0197-rising-temperature
0511-game-play-analysis-i
0577-employee-bonus
0584-find-customer-referee
0586-customer-placing-the-largest-number-of-orders
0595-big-countries
0596-classes-with-at-least-5-students
0610-triangle-judgement
0619-biggest-single-number
0620-not-boring-movies
0627-swap-sex-of-employees

About

Collection of LeetCode questions that I've solved to ace the coding interview! - Created using [LeetHub](https://github.com/QasimWani/LeetHub). Solved in C++, Java, Database (MySQL and Postgres).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors