Skip to content

sahildando/CP-Tourist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

LeetCode Topics

Array

0011-container-with-most-water
0035-search-insert-position
0049-group-anagrams
0053-maximum-subarray
0075-sort-colors
0108-convert-sorted-array-to-binary-search-tree
0118-pascals-triangle
0150-evaluate-reverse-polish-notation
0162-find-peak-element
0169-majority-element
0217-contains-duplicate
0238-product-of-array-except-self
0268-missing-number
0349-intersection-of-two-arrays
0560-subarray-sum-equals-k
0587-erect-the-fence
0611-valid-triangle-number
0692-top-k-frequent-words
0724-find-pivot-index
0790-global-and-local-inversions
0816-design-hashset
0917-boats-to-save-people
0948-sort-an-array
0985-bag-of-tokens
1231-replace-elements-with-greatest-element-on-right-side
1284-four-divisors
1349-check-if-it-is-a-straight-line
1395-minimum-time-visiting-all-points
1458-sort-integers-by-the-number-of-1-bits

Binary Search

0035-search-insert-position
0162-find-peak-element
0268-missing-number
0349-intersection-of-two-arrays
0611-valid-triangle-number

Divide and Conquer

0053-maximum-subarray
0108-convert-sorted-array-to-binary-search-tree
0169-majority-element
0948-sort-an-array

Tree

0101-symmetric-tree
0102-binary-tree-level-order-traversal
0104-maximum-depth-of-binary-tree
0108-convert-sorted-array-to-binary-search-tree
0199-binary-tree-right-side-view
0543-diameter-of-binary-tree
1484-linked-list-in-binary-tree

Binary Search Tree

0108-convert-sorted-array-to-binary-search-tree

Binary Tree

0101-symmetric-tree
0102-binary-tree-level-order-traversal
0104-maximum-depth-of-binary-tree
0108-convert-sorted-array-to-binary-search-tree
0199-binary-tree-right-side-view
0543-diameter-of-binary-tree
1484-linked-list-in-binary-tree

Dynamic Programming

0053-maximum-subarray
0118-pascals-triangle
1461-count-all-valid-pickup-and-delivery-options
2017-minimum-number-of-flips-to-make-the-binary-string-alternating

Two Pointers

0011-container-with-most-water
0019-remove-nth-node-from-end-of-list
0075-sort-colors
0082-remove-duplicates-from-sorted-list-ii
0125-valid-palindrome
0142-linked-list-cycle-ii
0344-reverse-string
0349-intersection-of-two-arrays
0611-valid-triangle-number
0908-middle-of-the-linked-list
0917-boats-to-save-people
0985-bag-of-tokens
2095-minimum-number-of-swaps-to-make-the-string-balanced
2216-delete-the-middle-node-of-a-linked-list

String

0013-roman-to-integer
0049-group-anagrams
0125-valid-palindrome
0168-excel-sheet-column-title
0224-basic-calculator
0242-valid-anagram
0344-reverse-string
0389-find-the-difference
0438-find-all-anagrams-in-a-string
0451-sort-characters-by-frequency
0692-top-k-frequent-words
1128-remove-all-adjacent-duplicates-in-string
1197-parsing-a-boolean-expression
1915-check-if-one-string-swap-can-make-strings-equal
2017-minimum-number-of-flips-to-make-the-binary-string-alternating
2021-remove-all-occurrences-of-a-substring
2095-minimum-number-of-swaps-to-make-the-string-balanced

Math

0013-roman-to-integer
0150-evaluate-reverse-polish-notation
0168-excel-sheet-column-title
0224-basic-calculator
0263-ugly-number
0268-missing-number
0382-linked-list-random-node
0445-add-two-numbers-ii
0587-erect-the-fence
0790-global-and-local-inversions
1284-four-divisors
1349-check-if-it-is-a-straight-line
1395-minimum-time-visiting-all-points
1411-convert-binary-number-in-a-linked-list-to-integer
1461-count-all-valid-pickup-and-delivery-options
2050-count-good-numbers
2649-count-total-number-of-colored-cells

Hash Table

0013-roman-to-integer
0049-group-anagrams
0142-linked-list-cycle-ii
0169-majority-element
0217-contains-duplicate
0242-valid-anagram
0268-missing-number
0349-intersection-of-two-arrays
0389-find-the-difference
0438-find-all-anagrams-in-a-string
0451-sort-characters-by-frequency
0560-subarray-sum-equals-k
0692-top-k-frequent-words
0816-design-hashset
1915-check-if-one-string-swap-can-make-strings-equal

Sorting

0049-group-anagrams
0075-sort-colors
0169-majority-element
0217-contains-duplicate
0242-valid-anagram
0268-missing-number
0349-intersection-of-two-arrays
0389-find-the-difference
0451-sort-characters-by-frequency
0611-valid-triangle-number
0692-top-k-frequent-words
0917-boats-to-save-people
0948-sort-an-array
0985-bag-of-tokens
1458-sort-integers-by-the-number-of-1-bits

Counting

0169-majority-element
0451-sort-characters-by-frequency
0692-top-k-frequent-words
1458-sort-integers-by-the-number-of-1-bits
1915-check-if-one-string-swap-can-make-strings-equal

Database

0182-duplicate-emails
0585-investments-in-2016
1174-sales-analysis-iii

Bit Manipulation

0268-missing-number
0389-find-the-difference
1458-sort-integers-by-the-number-of-1-bits

Linked List

0019-remove-nth-node-from-end-of-list
0024-swap-nodes-in-pairs
0082-remove-duplicates-from-sorted-list-ii
0142-linked-list-cycle-ii
0237-delete-node-in-a-linked-list
0328-odd-even-linked-list
0382-linked-list-random-node
0445-add-two-numbers-ii
0816-design-hashset
0908-middle-of-the-linked-list
1411-convert-binary-number-in-a-linked-list-to-integer
1484-linked-list-in-binary-tree
2216-delete-the-middle-node-of-a-linked-list

Design

0232-implement-queue-using-stacks
0816-design-hashset
0937-online-stock-span

Hash Function

0816-design-hashset

Recursion

0024-swap-nodes-in-pairs
0224-basic-calculator
1197-parsing-a-boolean-expression
2050-count-good-numbers

Depth-First Search

0101-symmetric-tree
0104-maximum-depth-of-binary-tree
0199-binary-tree-right-side-view
0543-diameter-of-binary-tree
1484-linked-list-in-binary-tree

Stack

0150-evaluate-reverse-polish-notation
0224-basic-calculator
0232-implement-queue-using-stacks
0445-add-two-numbers-ii
0937-online-stock-span
1128-remove-all-adjacent-duplicates-in-string
1197-parsing-a-boolean-expression
2021-remove-all-occurrences-of-a-substring
2095-minimum-number-of-swaps-to-make-the-string-balanced

Reservoir Sampling

0382-linked-list-random-node

Randomized

0382-linked-list-random-node

Prefix Sum

0238-product-of-array-except-self
0560-subarray-sum-equals-k
0724-find-pivot-index

Greedy

0011-container-with-most-water
0611-valid-triangle-number
0917-boats-to-save-people
0985-bag-of-tokens
2095-minimum-number-of-swaps-to-make-the-string-balanced

Trie

0692-top-k-frequent-words

Heap (Priority Queue)

0451-sort-characters-by-frequency
0692-top-k-frequent-words
0948-sort-an-array

Bucket Sort

0451-sort-characters-by-frequency
0692-top-k-frequent-words
0948-sort-an-array

Merge Sort

0948-sort-an-array

Radix Sort

0948-sort-an-array

Counting Sort

0948-sort-an-array

Monotonic Stack

0937-online-stock-span

Data Stream

0937-online-stock-span

Queue

0232-implement-queue-using-stacks

Simulation

2021-remove-all-occurrences-of-a-substring

Geometry

0587-erect-the-fence
1349-check-if-it-is-a-straight-line
1395-minimum-time-visiting-all-points

Combinatorics

1461-count-all-valid-pickup-and-delivery-options

Breadth-First Search

0101-symmetric-tree
0102-binary-tree-level-order-traversal
0104-maximum-depth-of-binary-tree
0199-binary-tree-right-side-view

Sliding Window

0438-find-all-anagrams-in-a-string
2017-minimum-number-of-flips-to-make-the-binary-string-alternating

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages