Skip to content

Hitpragya/LeetCode-DSA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

144 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

LeetCode Topics

Math

0007-reverse-integer
0012-integer-to-roman
0029-divide-two-integers
0168-excel-sheet-column-title
0171-excel-sheet-column-number
0633-sum-of-square-numbers
1979-find-greatest-common-divisor-of-array
3312-sorted-gcd-pair-queries
3336-find-the-number-of-subsequences-with-equal-gcd
3658-gcd-of-odd-and-even-sums
3867-sum-of-gcd-of-formed-pairs

Array

0018-4sum
0053-maximum-subarray
0674-longest-continuous-increasing-subsequence
0697-degree-of-an-array
0704-binary-search
0744-find-smallest-letter-greater-than-target
1260-shift-2d-grid
1331-rank-transform-of-an-array
1979-find-greatest-common-divisor-of-array
3312-sorted-gcd-pair-queries
3336-find-the-number-of-subsequences-with-equal-gcd
3532-path-existence-queries-in-a-graph-i
3534-path-existence-queries-in-a-graph-ii
3867-sum-of-gcd-of-formed-pairs

Hash Table

0012-integer-to-roman
0697-degree-of-an-array
1331-rank-transform-of-an-array
3312-sorted-gcd-pair-queries
3532-path-existence-queries-in-a-graph-i

Binary Search

0633-sum-of-square-numbers
0704-binary-search
0744-find-smallest-letter-greater-than-target
3312-sorted-gcd-pair-queries
3532-path-existence-queries-in-a-graph-i
3534-path-existence-queries-in-a-graph-ii

Union-Find

2685-count-the-number-of-complete-components
3532-path-existence-queries-in-a-graph-i

Graph Theory

2685-count-the-number-of-complete-components
3532-path-existence-queries-in-a-graph-i
3534-path-existence-queries-in-a-graph-ii

Two Pointers

0018-4sum
0344-reverse-string
0633-sum-of-square-numbers
3534-path-existence-queries-in-a-graph-ii
3867-sum-of-gcd-of-formed-pairs

Dynamic Programming

0053-maximum-subarray
3336-find-the-number-of-subsequences-with-equal-gcd
3534-path-existence-queries-in-a-graph-ii

Greedy

1081-smallest-subsequence-of-distinct-characters
3534-path-existence-queries-in-a-graph-ii

Bit Manipulation

0029-divide-two-integers
3534-path-existence-queries-in-a-graph-ii

Sorting

0018-4sum
1331-rank-transform-of-an-array
3534-path-existence-queries-in-a-graph-ii
3867-sum-of-gcd-of-formed-pairs

String

0012-integer-to-roman
0168-excel-sheet-column-title
0171-excel-sheet-column-number
0344-reverse-string
1081-smallest-subsequence-of-distinct-characters
3499-maximize-active-section-with-trade-i

Depth-First Search

2685-count-the-number-of-complete-components

Breadth-First Search

2685-count-the-number-of-complete-components

Enumeration

1291-sequential-digits
3499-maximize-active-section-with-trade-i

Number Theory

1979-find-greatest-common-divisor-of-array
3312-sorted-gcd-pair-queries
3336-find-the-number-of-subsequences-with-equal-gcd
3658-gcd-of-odd-and-even-sums
3867-sum-of-gcd-of-formed-pairs

Simulation

1260-shift-2d-grid
3867-sum-of-gcd-of-formed-pairs

Combinatorics

3312-sorted-gcd-pair-queries

Counting

3312-sorted-gcd-pair-queries

Prefix Sum

3312-sorted-gcd-pair-queries

Divide and Conquer

0053-maximum-subarray

Stack

1081-smallest-subsequence-of-distinct-characters

Monotonic Stack

1081-smallest-subsequence-of-distinct-characters

Matrix

1260-shift-2d-grid

About

My Data Structures & Algorithms solutions from LeetCode, solved primarily in C++.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages