Skip to content

Ash-codes18/Cpp_DSA

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

Hash Table

0127-word-ladder
0347-top-k-frequent-elements
0438-find-all-anagrams-in-a-string
2445-reachable-nodes-with-restrictions
2461-amount-of-time-for-binary-tree-to-be-infected
3329-find-the-length-of-the-longest-common-prefix

String

0127-word-ladder
0438-find-all-anagrams-in-a-string
0539-minimum-time-difference
0812-rotate-string
1350-remove-sub-folders-from-the-filesystem
2076-sum-of-digits-of-string-after-convert
2492-length-of-the-longest-alphabetical-continuous-substring
2580-circular-sentence
2800-minimum-string-length-after-removing-substrings
3174-minimum-number-of-changes-to-make-binary-string-beautiful
3329-find-the-length-of-the-longest-common-prefix
3451-string-compression-iii

Sliding Window

0438-find-all-anagrams-in-a-string
1755-defuse-the-bomb
3522-find-the-power-of-k-size-subarrays-i

Array

0200-number-of-islands
0347-top-k-frequent-elements
0539-minimum-time-difference
1036-rotting-oranges
1073-number-of-enclaves
1325-path-with-maximum-probability
1350-remove-sub-folders-from-the-filesystem
1380-number-of-closed-islands
1755-defuse-the-bomb
2006-find-the-student-that-will-replace-the-chalk
2038-nearest-exit-from-entrance-in-maze
2103-find-all-groups-of-farmland
2132-convert-1d-array-into-2d-array
2155-find-missing-observations
2445-reachable-nodes-with-restrictions
2503-longest-subarray-with-maximum-bitwise-and
2616-maximal-score-after-applying-k-operations
3291-find-if-array-can-be-sorted
3329-find-the-length-of-the-longest-common-prefix
3522-find-the-power-of-k-size-subarrays-i

Matrix

0200-number-of-islands
1036-rotting-oranges
1073-number-of-enclaves
1380-number-of-closed-islands
2038-nearest-exit-from-entrance-in-maze
2103-find-all-groups-of-farmland
2132-convert-1d-array-into-2d-array

Simulation

2006-find-the-student-that-will-replace-the-chalk
2076-sum-of-digits-of-string-after-convert
2132-convert-1d-array-into-2d-array
2155-find-missing-observations
2800-minimum-string-length-after-removing-substrings

Binary Search

2006-find-the-student-that-will-replace-the-chalk

Prefix Sum

2006-find-the-student-that-will-replace-the-chalk

Depth-First Search

0200-number-of-islands
0207-course-schedule
0210-course-schedule-ii
0572-subtree-of-another-tree
0744-network-delay-time
0801-is-graph-bipartite
0820-find-eventual-safe-states
0988-flip-equivalent-binary-trees
1073-number-of-enclaves
1350-remove-sub-folders-from-the-filesystem
1380-number-of-closed-islands
1484-linked-list-in-binary-tree
2103-find-all-groups-of-farmland
2445-reachable-nodes-with-restrictions
2461-amount-of-time-for-binary-tree-to-be-infected

Breadth-First Search

0127-word-ladder
0200-number-of-islands
0207-course-schedule
0210-course-schedule-ii
0744-network-delay-time
0801-is-graph-bipartite
0820-find-eventual-safe-states
1036-rotting-oranges
1073-number-of-enclaves
1380-number-of-closed-islands
1484-linked-list-in-binary-tree
2038-nearest-exit-from-entrance-in-maze
2103-find-all-groups-of-farmland
2445-reachable-nodes-with-restrictions
2461-amount-of-time-for-binary-tree-to-be-infected

Union Find

0200-number-of-islands
0801-is-graph-bipartite
1073-number-of-enclaves
1380-number-of-closed-islands
2445-reachable-nodes-with-restrictions

Math

0539-minimum-time-difference
2050-count-good-numbers
2155-find-missing-observations
2351-number-of-ways-to-buy-pens-and-pencils
2903-insert-greatest-common-divisors-in-linked-list

Divide and Conquer

0347-top-k-frequent-elements

Sorting

0347-top-k-frequent-elements
0539-minimum-time-difference
3291-find-if-array-can-be-sorted

Heap (Priority Queue)

0347-top-k-frequent-elements
0744-network-delay-time
1325-path-with-maximum-probability
2616-maximal-score-after-applying-k-operations

Bucket Sort

0347-top-k-frequent-elements

Counting

0347-top-k-frequent-elements

Quickselect

0347-top-k-frequent-elements

Linked List

0725-split-linked-list-in-parts
1484-linked-list-in-binary-tree
2903-insert-greatest-common-divisors-in-linked-list

Tree

0572-subtree-of-another-tree
0988-flip-equivalent-binary-trees
1484-linked-list-in-binary-tree
2445-reachable-nodes-with-restrictions
2461-amount-of-time-for-binary-tree-to-be-infected

Binary Tree

0572-subtree-of-another-tree
0988-flip-equivalent-binary-trees
1484-linked-list-in-binary-tree
2461-amount-of-time-for-binary-tree-to-be-infected

Number Theory

2903-insert-greatest-common-divisors-in-linked-list

Bit Manipulation

2503-longest-subarray-with-maximum-bitwise-and
3291-find-if-array-can-be-sorted

Brainteaser

2503-longest-subarray-with-maximum-bitwise-and

String Matching

0572-subtree-of-another-tree
0812-rotate-string

Hash Function

0572-subtree-of-another-tree

Trie

1350-remove-sub-folders-from-the-filesystem
3329-find-the-length-of-the-longest-common-prefix

Recursion

2050-count-good-numbers

Stack

2800-minimum-string-length-after-removing-substrings

Graph

0207-course-schedule
0210-course-schedule-ii
0744-network-delay-time
0801-is-graph-bipartite
0820-find-eventual-safe-states
1325-path-with-maximum-probability
1456-find-the-city-with-the-smallest-number-of-neighbors-at-a-threshold-distance
2090-number-of-ways-to-arrive-at-destination
2445-reachable-nodes-with-restrictions

Topological Sort

0207-course-schedule
0210-course-schedule-ii
0820-find-eventual-safe-states
2090-number-of-ways-to-arrive-at-destination

Greedy

2616-maximal-score-after-applying-k-operations

Shortest Path

0744-network-delay-time
1325-path-with-maximum-probability
1456-find-the-city-with-the-smallest-number-of-neighbors-at-a-threshold-distance
2090-number-of-ways-to-arrive-at-destination

Dynamic Programming

1456-find-the-city-with-the-smallest-number-of-neighbors-at-a-threshold-distance
2090-number-of-ways-to-arrive-at-destination

Enumeration

2351-number-of-ways-to-buy-pens-and-pencils