Skip to content

K-c-17/leetcode_practice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

995 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

leetcode_practice

I have created this repo as I embark on my journey to improve my algorithmic problem solving skills.
This is a location to document my progress on Leetcode

  • Will try to solve atleast 3 questions everyday
  • Will be covering the following DSA topics as mentioned in this DE Dashboard

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
0026-remove-duplicates-from-sorted-array
0035-search-insert-position
0036-valid-sudoku
0049-group-anagrams
0075-sort-colors
0088-merge-sorted-array
0121-best-time-to-buy-and-sell-stock
0128-longest-consecutive-sequence
0167-two-sum-ii-input-array-is-sorted
0179-largest-number
0189-rotate-array
0198-house-robber
0204-count-primes
0213-house-robber-ii
0215-kth-largest-element-in-an-array
0217-contains-duplicate
0219-contains-duplicate-ii
0238-product-of-array-except-self
0252-meeting-rooms
0253-meeting-rooms-ii
0283-move-zeroes
0322-coin-change
0334-increasing-triplet-subsequence
0347-top-k-frequent-elements
0350-intersection-of-two-arrays-ii
0416-partition-equal-subset-sum
0435-non-overlapping-intervals
0455-assign-cookies
0494-target-sum
0496-next-greater-element-i
0518-coin-change-ii
0643-maximum-average-subarray-i
0724-find-pivot-index
0735-asteroid-collision
0786-search-in-a-sorted-array-of-unknown-size
0792-binary-search
0817-design-hashmap
0907-koko-eating-bananas
1039-find-the-town-judge
1044-find-common-characters
1074-high-five
1127-last-stone-weight
1319-unique-number-of-occurrences
1392-find-the-difference-of-two-arrays
1833-find-the-highest-altitude
2102-find-the-middle-index-in-array
2144-maximum-difference-between-increasing-elements
2245-destroying-asteroids
2292-counting-words-with-a-given-prefix
2358-number-of-ways-to-split-array
2428-equal-row-and-column-pairs
2594-count-pairs-of-similar-strings
2614-maximum-count-of-positive-integer-and-negative-integer
2692-take-gifts-from-the-richest-pile
3236-smallest-missing-integer-greater-than-sequential-prefix-sum
3471-minimum-average-of-smallest-and-largest-elements

Hash Table

0001-two-sum
0003-longest-substring-without-repeating-characters
0036-valid-sudoku
0049-group-anagrams
0128-longest-consecutive-sequence
0141-linked-list-cycle
0142-linked-list-cycle-ii
0160-intersection-of-two-linked-lists
0202-happy-number
0205-isomorphic-strings
0217-contains-duplicate
0219-contains-duplicate-ii
0242-valid-anagram
0314-binary-tree-vertical-order-traversal
0347-top-k-frequent-elements
0350-intersection-of-two-arrays-ii
0387-first-unique-character-in-a-string
0409-longest-palindrome
0496-next-greater-element-i
0817-design-hashmap
0920-uncommon-words-from-two-sentences
1039-find-the-town-judge
1044-find-common-characters
1074-high-five
1319-unique-number-of-occurrences
1392-find-the-difference-of-two-arrays
1777-determine-if-two-strings-are-close
2428-equal-row-and-column-pairs
2594-count-pairs-of-similar-strings
3236-smallest-missing-integer-greater-than-sequential-prefix-sum

String

0003-longest-substring-without-repeating-characters
0020-valid-parentheses
0028-find-the-index-of-the-first-occurrence-in-a-string
0049-group-anagrams
0125-valid-palindrome
0151-reverse-words-in-a-string
0179-largest-number
0205-isomorphic-strings
0227-basic-calculator-ii
0242-valid-anagram
0345-reverse-vowels-of-a-string
0387-first-unique-character-in-a-string
0392-is-subsequence
0394-decode-string
0408-valid-word-abbreviation
0409-longest-palindrome
0583-delete-operation-for-two-strings
0680-valid-palindrome-ii
0920-uncommon-words-from-two-sentences
1044-find-common-characters
1250-longest-common-subsequence
1371-minimum-remove-to-make-valid-parentheses
1567-maximum-number-of-vowels-in-a-substring-of-given-length
1777-determine-if-two-strings-are-close
1894-merge-strings-alternately
2292-counting-words-with-a-given-prefix
2470-removing-stars-from-a-string
2594-count-pairs-of-similar-strings
3379-score-of-a-string

Two Pointers

0011-container-with-most-water
0015-3sum
0026-remove-duplicates-from-sorted-array
0028-find-the-index-of-the-first-occurrence-in-a-string
0075-sort-colors
0088-merge-sorted-array
0125-valid-palindrome
0141-linked-list-cycle
0142-linked-list-cycle-ii
0151-reverse-words-in-a-string
0160-intersection-of-two-linked-lists
0167-two-sum-ii-input-array-is-sorted
0189-rotate-array
0202-happy-number
0234-palindrome-linked-list
0253-meeting-rooms-ii
0283-move-zeroes
0345-reverse-vowels-of-a-string
0350-intersection-of-two-arrays-ii
0392-is-subsequence
0408-valid-word-abbreviation
0455-assign-cookies
0680-valid-palindrome-ii
0908-middle-of-the-linked-list
1894-merge-strings-alternately
3471-minimum-average-of-smallest-and-largest-elements

Binary Search

0035-search-insert-position
0069-sqrtx
0167-two-sum-ii-input-array-is-sorted
0270-closest-binary-search-tree-value
0350-intersection-of-two-arrays-ii
0786-search-in-a-sorted-array-of-unknown-size
0792-binary-search
0907-koko-eating-bananas
2614-maximum-count-of-positive-integer-and-negative-integer

Sorting

0015-3sum
0049-group-anagrams
0075-sort-colors
0088-merge-sorted-array
0179-largest-number
0215-kth-largest-element-in-an-array
0217-contains-duplicate
0242-valid-anagram
0252-meeting-rooms
0253-meeting-rooms-ii
0314-binary-tree-vertical-order-traversal
0347-top-k-frequent-elements
0350-intersection-of-two-arrays-ii
0435-non-overlapping-intervals
0455-assign-cookies
1074-high-five
1777-determine-if-two-strings-are-close
2245-destroying-asteroids
3236-smallest-missing-integer-greater-than-sequential-prefix-sum
3471-minimum-average-of-smallest-and-largest-elements

Dynamic Programming

0070-climbing-stairs
0121-best-time-to-buy-and-sell-stock
0198-house-robber
0213-house-robber-ii
0322-coin-change
0392-is-subsequence
0416-partition-equal-subset-sum
0435-non-overlapping-intervals
0494-target-sum
0518-coin-change-ii
0583-delete-operation-for-two-strings
1013-fibonacci-number
1250-longest-common-subsequence

Stack

0020-valid-parentheses
0094-binary-tree-inorder-traversal
0155-min-stack
0227-basic-calculator-ii
0234-palindrome-linked-list
0394-decode-string
0496-next-greater-element-i
0735-asteroid-collision
1371-minimum-remove-to-make-valid-parentheses
2470-removing-stars-from-a-string

Simulation

0735-asteroid-collision
2428-equal-row-and-column-pairs
2470-removing-stars-from-a-string
2692-take-gifts-from-the-richest-pile

Greedy

0011-container-with-most-water
0179-largest-number
0253-meeting-rooms-ii
0334-increasing-triplet-subsequence
0409-longest-palindrome
0435-non-overlapping-intervals
0455-assign-cookies
0680-valid-palindrome-ii
2245-destroying-asteroids

Heap (Priority Queue)

0215-kth-largest-element-in-an-array
0253-meeting-rooms-ii
0347-top-k-frequent-elements
1074-high-five
1127-last-stone-weight
2692-take-gifts-from-the-richest-pile

Queue

0387-first-unique-character-in-a-string

Counting

0347-top-k-frequent-elements
0387-first-unique-character-in-a-string
0920-uncommon-words-from-two-sentences
1777-determine-if-two-strings-are-close
2594-count-pairs-of-similar-strings
2614-maximum-count-of-positive-integer-and-negative-integer

Interactive

0786-search-in-a-sorted-array-of-unknown-size

Math

0002-add-two-numbers
0069-sqrtx
0070-climbing-stairs
0189-rotate-array
0202-happy-number
0204-count-primes
0227-basic-calculator-ii
0263-ugly-number
1013-fibonacci-number

Recursion

0002-add-two-numbers
0021-merge-two-sorted-lists
0203-remove-linked-list-elements
0206-reverse-linked-list
0234-palindrome-linked-list
0394-decode-string
1013-fibonacci-number

Memoization

0070-climbing-stairs
1013-fibonacci-number

Database

0183-customers-who-never-order
1181-game-play-analysis-iii
1390-average-selling-price
1724-customer-who-visited-but-did-not-make-any-transactions
1974-find-customers-with-positive-revenue-this-year

Prefix Sum

0238-product-of-array-except-self
0253-meeting-rooms-ii
0724-find-pivot-index
1833-find-the-highest-altitude
2102-find-the-middle-index-in-array
2358-number-of-ways-to-split-array

Matrix

0036-valid-sudoku
2428-equal-row-and-column-pairs

Bit Manipulation

2594-count-pairs-of-similar-strings

Sliding Window

0003-longest-substring-without-repeating-characters
0219-contains-duplicate-ii
0643-maximum-average-subarray-i
1567-maximum-number-of-vowels-in-a-substring-of-given-length

String Matching

0028-find-the-index-of-the-first-occurrence-in-a-string
2292-counting-words-with-a-given-prefix

Tree

0094-binary-tree-inorder-traversal
0100-same-tree
0101-symmetric-tree
0102-binary-tree-level-order-traversal
0104-maximum-depth-of-binary-tree
0107-binary-tree-level-order-traversal-ii
0116-populating-next-right-pointers-in-each-node
0117-populating-next-right-pointers-in-each-node-ii
0199-binary-tree-right-side-view
0270-closest-binary-search-tree-value
0314-binary-tree-vertical-order-traversal
0515-find-largest-value-in-each-tree-row
0543-diameter-of-binary-tree
0662-maximum-width-of-binary-tree
0975-range-sum-of-bst
1116-maximum-level-sum-of-a-binary-tree
2493-reverse-odd-levels-of-binary-tree

Depth-First Search

0094-binary-tree-inorder-traversal
0100-same-tree
0101-symmetric-tree
0104-maximum-depth-of-binary-tree
0116-populating-next-right-pointers-in-each-node
0117-populating-next-right-pointers-in-each-node-ii
0199-binary-tree-right-side-view
0270-closest-binary-search-tree-value
0314-binary-tree-vertical-order-traversal
0515-find-largest-value-in-each-tree-row
0543-diameter-of-binary-tree
0662-maximum-width-of-binary-tree
0975-range-sum-of-bst
1116-maximum-level-sum-of-a-binary-tree
2493-reverse-odd-levels-of-binary-tree

Breadth-First Search

0100-same-tree
0101-symmetric-tree
0102-binary-tree-level-order-traversal
0104-maximum-depth-of-binary-tree
0107-binary-tree-level-order-traversal-ii
0116-populating-next-right-pointers-in-each-node
0117-populating-next-right-pointers-in-each-node-ii
0199-binary-tree-right-side-view
0314-binary-tree-vertical-order-traversal
0322-coin-change
0515-find-largest-value-in-each-tree-row
0662-maximum-width-of-binary-tree
1116-maximum-level-sum-of-a-binary-tree
2493-reverse-odd-levels-of-binary-tree

Binary Tree

0094-binary-tree-inorder-traversal
0100-same-tree
0101-symmetric-tree
0102-binary-tree-level-order-traversal
0104-maximum-depth-of-binary-tree
0107-binary-tree-level-order-traversal-ii
0116-populating-next-right-pointers-in-each-node
0117-populating-next-right-pointers-in-each-node-ii
0199-binary-tree-right-side-view
0270-closest-binary-search-tree-value
0314-binary-tree-vertical-order-traversal
0515-find-largest-value-in-each-tree-row
0543-diameter-of-binary-tree
0662-maximum-width-of-binary-tree
0975-range-sum-of-bst
1116-maximum-level-sum-of-a-binary-tree
2493-reverse-odd-levels-of-binary-tree

Linked List

0002-add-two-numbers
0021-merge-two-sorted-lists
0083-remove-duplicates-from-sorted-list
0116-populating-next-right-pointers-in-each-node
0117-populating-next-right-pointers-in-each-node-ii
0141-linked-list-cycle
0142-linked-list-cycle-ii
0160-intersection-of-two-linked-lists
0203-remove-linked-list-elements
0206-reverse-linked-list
0234-palindrome-linked-list
0817-design-hashmap
0908-middle-of-the-linked-list

Monotonic Stack

0496-next-greater-element-i

Binary Search Tree

0270-closest-binary-search-tree-value
0975-range-sum-of-bst

Design

0155-min-stack
0817-design-hashmap

Hash Function

0817-design-hashmap

Enumeration

0204-count-primes

Number Theory

0204-count-primes

Graph

1039-find-the-town-judge
1916-find-center-of-star-graph

Backtracking

0494-target-sum

Divide and Conquer

0215-kth-largest-element-in-an-array
0347-top-k-frequent-elements

Bucket Sort

0347-top-k-frequent-elements

Quickselect

0215-kth-largest-element-in-an-array
0347-top-k-frequent-elements

Union Find

0128-longest-consecutive-sequence

About

Collections of Leetcode Questions. The sync is done through LeetHub V2 utility.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages