Skip to content
Shreyas850Public

About

"My personal journey through LeetCode: tackling data structures and algorithms one problem at a time.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

172 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 LeetCode Solutions & Progress Welcome to my LeetCode workspace! This repository serves as a documented log of my coding journey. Inside, you'll find a growing collection of solutions categorized by topic (such as Arrays, Dynamic Programming, and Graphs). Feel free to explore the code if you are looking for hints on a tricky problem or want to compare algorithmic approaches!

LeetCode Topics

Array

0001-two-sum
0004-median-of-two-sorted-arrays
1140-stone-game-ii
1298-maximum-candies-you-can-get-from-boxes
1349-maximum-students-taking-exam
1563-stone-game-v
1658-minimum-operations-to-reduce-x-to-zero
2213-longest-substring-of-one-repeating-character
2996-smallest-missing-integer-greater-than-sequential-prefix-sum
3022-minimize-or-of-remaining-elements-using-operations
3043-find-the-length-of-the-longest-common-prefix
3069-distribute-elements-into-two-arrays-i
3501-maximize-active-section-with-trade-ii
3550-smallest-index-with-digit-sum-equal-to-index
3568-minimum-moves-to-clean-the-classroom
3664-two-letter-card-game
3875-construct-uniform-parity-array-i
3876-construct-uniform-parity-array-ii
3903-smallest-stable-index-i

Hash Table

0001-two-sum
1658-minimum-operations-to-reduce-x-to-zero
2996-smallest-missing-integer-greater-than-sequential-prefix-sum
3043-find-the-length-of-the-longest-common-prefix
3090-maximum-length-substring-with-two-occurrences
3568-minimum-moves-to-clean-the-classroom
3664-two-letter-card-game

Binary Search

0004-median-of-two-sorted-arrays
1658-minimum-operations-to-reduce-x-to-zero
2286-booking-concert-tickets-in-groups
3501-maximize-active-section-with-trade-ii

Divide and Conquer

0004-median-of-two-sorted-arrays
0023-merge-k-sorted-lists

Depth-First Search

3310-remove-methods-from-project

Breadth-First Search

1298-maximum-candies-you-can-get-from-boxes
3310-remove-methods-from-project
3568-minimum-moves-to-clean-the-classroom

Graph Theory

1298-maximum-candies-you-can-get-from-boxes
3310-remove-methods-from-project

Math

0002-add-two-numbers
1140-stone-game-ii
1510-stone-game-iv
1563-stone-game-v
3345-smallest-divisible-digit-product-i
3348-smallest-divisible-digit-product-ii
3550-smallest-index-with-digit-sum-equal-to-index
3875-construct-uniform-parity-array-i
3876-construct-uniform-parity-array-ii

Enumeration

3345-smallest-divisible-digit-product-i
3664-two-letter-card-game

Dynamic Programming

0010-regular-expression-matching
1140-stone-game-ii
1349-maximum-students-taking-exam
1510-stone-game-iv
1563-stone-game-v
2472-maximum-number-of-non-overlapping-palindrome-substrings
3130-find-all-possible-stable-binary-arrays-ii
3302-find-the-lexicographically-smallest-valid-sequence

Prefix Sum

1140-stone-game-ii
1658-minimum-operations-to-reduce-x-to-zero
3130-find-all-possible-stable-binary-arrays-ii
3903-smallest-stable-index-i

String

0010-regular-expression-matching
2213-longest-substring-of-one-repeating-character
2472-maximum-number-of-non-overlapping-palindrome-substrings
2904-shortest-and-lexicographically-smallest-beautiful-string
3043-find-the-length-of-the-longest-common-prefix
3090-maximum-length-substring-with-two-occurrences
3302-find-the-lexicographically-smallest-valid-sequence
3348-smallest-divisible-digit-product-ii
3501-maximize-active-section-with-trade-ii
3664-two-letter-card-game

Trie

3043-find-the-length-of-the-longest-common-prefix

Recursion

0002-add-two-numbers
0010-regular-expression-matching
0025-reverse-nodes-in-k-group

Backtracking

3348-smallest-divisible-digit-product-ii

Greedy

2472-maximum-number-of-non-overlapping-palindrome-substrings
3022-minimize-or-of-remaining-elements-using-operations
3302-find-the-lexicographically-smallest-valid-sequence
3348-smallest-divisible-digit-product-ii

Number Theory

3348-smallest-divisible-digit-product-ii

Segment Tree

2213-longest-substring-of-one-repeating-character
2286-booking-concert-tickets-in-groups
3501-maximize-active-section-with-trade-ii

Two Pointers

2472-maximum-number-of-non-overlapping-palindrome-substrings
3302-find-the-lexicographically-smallest-valid-sequence

Counting

3664-two-letter-card-game

Minimax

1140-stone-game-ii
1510-stone-game-iv

Game Theory

1140-stone-game-ii
1510-stone-game-iv
1563-stone-game-v

Zero-Sum Game

1140-stone-game-ii
1510-stone-game-iv

Nim Game

1510-stone-game-iv

Sprague–Grundy Theorem

1510-stone-game-iv

Linked List

0002-add-two-numbers
0023-merge-k-sorted-lists
0025-reverse-nodes-in-k-group

Heap (Priority Queue)

0023-merge-k-sorted-lists

Merge Sort

0023-merge-k-sorted-lists

Tournament Sort

0023-merge-k-sorted-lists

Sorting

2996-smallest-missing-integer-greater-than-sequential-prefix-sum

Ordered Set

2213-longest-substring-of-one-repeating-character

Sliding Window

1658-minimum-operations-to-reduce-x-to-zero
2904-shortest-and-lexicographically-smallest-beautiful-string
3090-maximum-length-substring-with-two-occurrences

Simulation

3069-distribute-elements-into-two-arrays-i

Bit Manipulation

1349-maximum-students-taking-exam
3022-minimize-or-of-remaining-elements-using-operations
3568-minimum-moves-to-clean-the-classroom

Matrix

1349-maximum-students-taking-exam
3568-minimum-moves-to-clean-the-classroom

Bitmask

1349-maximum-students-taking-exam

Maximum Flow

1349-maximum-students-taking-exam

Maximum Matching

1349-maximum-students-taking-exam

Bipartite Graph

1349-maximum-students-taking-exam

Edmonds–Karp Algorithm

1349-maximum-students-taking-exam

MPM Algorithm

1349-maximum-students-taking-exam

Push-Relabel Algorithm

1349-maximum-students-taking-exam

Minimum Cut

1349-maximum-students-taking-exam

Matching (Graph)

1349-maximum-students-taking-exam

Flow Network

1349-maximum-students-taking-exam

Dinic's Algorithm

1349-maximum-students-taking-exam

Design

2286-booking-concert-tickets-in-groups

Binary Indexed Tree

2286-booking-concert-tickets-in-groups

About

"My personal journey through LeetCode: tackling data structures and algorithms one problem at a time.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages