Skip to content

Its-Siddhant/ICP

Repository files navigation

ICP

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

LeetCode Topics

Array

0011-container-with-most-water
0034-find-first-and-last-position-of-element-in-sorted-array
0035-search-insert-position
0040-combination-sum-ii
0053-maximum-subarray
0054-spiral-matrix
0055-jump-game
0074-search-a-2d-matrix
0079-word-search
0084-largest-rectangle-in-histogram
0085-maximal-rectangle
0088-merge-sorted-array
0134-gas-station
0150-evaluate-reverse-polish-notation
0200-number-of-islands
0215-kth-largest-element-in-an-array
0239-sliding-window-maximum
0406-queue-reconstruction-by-height
0407-trapping-rain-water-ii
0417-pacific-atlantic-water-flow
0435-non-overlapping-intervals
0452-minimum-number-of-arrows-to-burst-balloons
0455-assign-cookies
0496-next-greater-element-i
0674-longest-continuous-increasing-subsequence
0697-degree-of-an-array
0733-flood-fill
0735-asteroid-collision
0830-largest-triangle-area
0883-car-fleet
0890-lemonade-change
0917-boats-to-save-people
1001-n-repeated-element-in-size-2n-array
1018-largest-perimeter-triangle
1022-unique-paths-iii
1046-max-consecutive-ones-iii
1111-minimum-score-triangulation-of-polygon
1127-last-stone-weight
1612-avoid-flood-in-the-city
2116-count-number-of-pairs-with-absolute-difference-k
2122-count-special-quadruplets
2137-final-value-of-variable-after-performing-operations
2324-find-triangular-sum-of-an-array
2334-number-of-flowers-in-full-bloom
2392-successful-pairs-of-spells-and-potions
2661-smallest-missing-non-negative-integer-after-operations
3383-taking-maximum-energy-from-the-mystic-dungeon

Greedy

0011-container-with-most-water
0055-jump-game
0134-gas-station
0402-remove-k-digits
0435-non-overlapping-intervals
0452-minimum-number-of-arrows-to-burst-balloons
0455-assign-cookies
0890-lemonade-change
0917-boats-to-save-people
1018-largest-perimeter-triangle
1612-avoid-flood-in-the-city
2661-smallest-missing-non-negative-integer-after-operations

Sorting

0088-merge-sorted-array
0215-kth-largest-element-in-an-array
0406-queue-reconstruction-by-height
0435-non-overlapping-intervals
0452-minimum-number-of-arrows-to-burst-balloons
0455-assign-cookies
0883-car-fleet
0917-boats-to-save-people
1018-largest-perimeter-triangle
2334-number-of-flowers-in-full-bloom
2392-successful-pairs-of-spells-and-potions

Queue

0225-implement-stack-using-queues
0239-sliding-window-maximum

Sliding Window

0003-longest-substring-without-repeating-characters
0239-sliding-window-maximum
0424-longest-repeating-character-replacement
0438-find-all-anagrams-in-a-string
0567-permutation-in-string
1046-max-consecutive-ones-iii
1351-replace-the-substring-for-balanced-string

Heap (Priority Queue)

0215-kth-largest-element-in-an-array
0239-sliding-window-maximum
0407-trapping-rain-water-ii
1127-last-stone-weight
1612-avoid-flood-in-the-city

Monotonic Queue

0239-sliding-window-maximum

Binary Search

0034-find-first-and-last-position-of-element-in-sorted-array
0035-search-insert-position
0074-search-a-2d-matrix
0367-valid-perfect-square
1046-max-consecutive-ones-iii
1612-avoid-flood-in-the-city
2334-number-of-flowers-in-full-bloom
2392-successful-pairs-of-spells-and-potions

Math

0150-evaluate-reverse-polish-notation
0227-basic-calculator-ii
0319-bulb-switcher
0365-water-and-jug-problem
0367-valid-perfect-square
0830-largest-triangle-area
1018-largest-perimeter-triangle
1642-water-bottles
2202-sum-of-k-mirror-numbers
2324-find-triangular-sum-of-an-array
2661-smallest-missing-non-negative-integer-after-operations
3336-water-bottles-ii

Geometry

0830-largest-triangle-area

Two Pointers

0011-container-with-most-water
0088-merge-sorted-array
0143-reorder-list
0234-palindrome-linked-list
0455-assign-cookies
0567-permutation-in-string
0917-boats-to-save-people
2392-successful-pairs-of-spells-and-potions

Divide and Conquer

0053-maximum-subarray
0215-kth-largest-element-in-an-array

Quickselect

0215-kth-largest-element-in-an-array

Dynamic Programming

0053-maximum-subarray
0055-jump-game
0072-edit-distance
0085-maximal-rectangle
0435-non-overlapping-intervals
0467-unique-substrings-in-wraparound-string
1111-minimum-score-triangulation-of-polygon

Matrix

0054-spiral-matrix
0074-search-a-2d-matrix
0079-word-search
0085-maximal-rectangle
0200-number-of-islands
0407-trapping-rain-water-ii
0417-pacific-atlantic-water-flow
0733-flood-fill
1022-unique-paths-iii

Simulation

0054-spiral-matrix
0735-asteroid-collision
1642-water-bottles
2137-final-value-of-variable-after-performing-operations
2324-find-triangular-sum-of-an-array
3336-water-bottles-ii

Depth-First Search

0079-word-search
0200-number-of-islands
0365-water-and-jug-problem
0417-pacific-atlantic-water-flow
0733-flood-fill
1005-univalued-binary-tree
1498-find-a-corresponding-node-of-a-binary-tree-in-a-clone-of-that-tree

Breadth-First Search

0200-number-of-islands
0365-water-and-jug-problem
0407-trapping-rain-water-ii
0417-pacific-atlantic-water-flow
0733-flood-fill
1005-univalued-binary-tree
1498-find-a-corresponding-node-of-a-binary-tree-in-a-clone-of-that-tree

Union Find

0200-number-of-islands

Combinatorics

2324-find-triangular-sum-of-an-array

String

0003-longest-substring-without-repeating-characters
0071-simplify-path
0072-edit-distance
0079-word-search
0227-basic-calculator-ii
0394-decode-string
0402-remove-k-digits
0424-longest-repeating-character-replacement
0438-find-all-anagrams-in-a-string
0467-unique-substrings-in-wraparound-string
0567-permutation-in-string
0889-buddy-strings
1320-remove-all-adjacent-duplicates-in-string-ii
1351-replace-the-substring-for-balanced-string
2137-final-value-of-variable-after-performing-operations

Hash Table

0003-longest-substring-without-repeating-characters
0424-longest-repeating-character-replacement
0438-find-all-anagrams-in-a-string
0496-next-greater-element-i
0567-permutation-in-string
0697-degree-of-an-array
0889-buddy-strings
1001-n-repeated-element-in-size-2n-array
1612-avoid-flood-in-the-city
2116-count-number-of-pairs-with-absolute-difference-k
2122-count-special-quadruplets
2334-number-of-flowers-in-full-bloom
2661-smallest-missing-non-negative-integer-after-operations

Prefix Sum

1046-max-consecutive-ones-iii
2334-number-of-flowers-in-full-bloom
3383-taking-maximum-energy-from-the-mystic-dungeon

Stack

0071-simplify-path
0084-largest-rectangle-in-histogram
0085-maximal-rectangle
0143-reorder-list
0150-evaluate-reverse-polish-notation
0155-min-stack
0225-implement-stack-using-queues
0227-basic-calculator-ii
0234-palindrome-linked-list
0394-decode-string
0402-remove-k-digits
0496-next-greater-element-i
0735-asteroid-collision
0883-car-fleet
0937-online-stock-span
1320-remove-all-adjacent-duplicates-in-string-ii

Monotonic Stack

0084-largest-rectangle-in-histogram
0085-maximal-rectangle
0402-remove-k-digits
0496-next-greater-element-i
0883-car-fleet
0937-online-stock-span

Binary Indexed Tree

0406-queue-reconstruction-by-height

Segment Tree

0406-queue-reconstruction-by-height

Backtracking

0040-combination-sum-ii
0077-combinations
0079-word-search
1022-unique-paths-iii

Design

0155-min-stack
0225-implement-stack-using-queues
0937-online-stock-span

Data Stream

0937-online-stock-span

Bit Manipulation

1022-unique-paths-iii

Ordered Set

2334-number-of-flowers-in-full-bloom

Linked List

0083-remove-duplicates-from-sorted-list
0143-reorder-list
0234-palindrome-linked-list

Recursion

0143-reorder-list
0234-palindrome-linked-list
0394-decode-string

Brainteaser

0319-bulb-switcher

Tree

1005-univalued-binary-tree
1498-find-a-corresponding-node-of-a-binary-tree-in-a-clone-of-that-tree

Binary Tree

1005-univalued-binary-tree
1498-find-a-corresponding-node-of-a-binary-tree-in-a-clone-of-that-tree

Database

0182-duplicate-emails

Enumeration

2122-count-special-quadruplets
2202-sum-of-k-mirror-numbers

Counting

2116-count-number-of-pairs-with-absolute-difference-k

About

A collection of LeetCode questions to ace the coding interview taught by ICP Instructors

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages