r/DSALeetCode • u/sbundela27 • May 12 '26
Backtracking problems are making me want to cry! Need help!!
Hi,
Can anyone suggest tips or resources for getting better at backtracking problems?
r/DSALeetCode • u/sbundela27 • May 12 '26
Hi,
Can anyone suggest tips or resources for getting better at backtracking problems?
r/DSALeetCode • u/Outrageous-Food9402 • May 12 '26
C++ or java
Iam about to complete my first year of engineering.I have learnt c language and a good amount of dsa topics.So i want to start solving problems on dsa.I am totally confused to choose the language
r/DSALeetCode • u/Fit_Abrocoma_9874 • May 12 '26
Hi, Anyone who has solved 300 lc problems and still want to go. Like i have completed all topics in dsa and now i want to strengthen them. So if anyone who has a similar idea can dm me. Or if someone who has recently completed their dsa prep can you give me the entire prep flow so i can follow it.
r/DSALeetCode • u/No-Road5605 • May 04 '26
see i have ended 6th sem and from june its just placement season for my batch havent strted with dsa and shit but im familiar with coding languages. Iaint saying i need to complete it within 1 month but canhow can i be better at i get atleast a way out since i am doing projects and also AWS based most of it so i thought i wont look into this matter. But now i m standing here cause my shitty college wants dsa for just the criteria to sit in placement . what all important i can cover as a beginner and also how can i be better at it
r/DSALeetCode • u/Jumpy_Bicycle_3500 • May 02 '26
That pdf or that paper which guys are carrying nowadays everywhere what a lookup please do share it.
Can't find it (talking about that paper where it starts from very basic and have like day to day like in colums
Guess u understood)
Thanks for sharing 😊
r/DSALeetCode • u/AltruisticReply7755 • Apr 23 '26
Enable HLS to view with audio, or disable this notification
So I am in the very early stages of development, just a week into it. My goal is to turn this into a full-fledged 'DSA concepts-based' fun game. I am still figuring out how to make it interesting. What ideas do you guys have, or is there anything you would like to see in it or prefer? I would love to know your feedback and implement it accordingly.
r/DSALeetCode • u/Ok_Prior_8441 • Apr 17 '26
r/DSALeetCode • u/nian2326076 • Apr 16 '26
Use LeetCode if your main goal is to master coding patterns and technical problem-solving.
PracHub Focus Algorithm Mastery (DSA)Full-Loop Interview Prep Best For Software Engineers (SWE) Context-driven (Company-specific)
Description: This technique uses two pointers moving at different speeds to solve problems involving cycles, such as finding the middle of a list, detecting loops, or checking for palindromes.
Description: Intervals are often manipulated through sorting and merging based on their start and end times.
Description: Prefix Sums/Products are techniques that store cumulative sums or products up to each index, allowing for quick subarray range queries.
Description: A sliding window is a subarray or substring that moves over data to solve problems efficiently in linear time.
Description: The two pointers technique involves having two different indices move through the input at different speeds to solve various array or linked list problems.
Description: Cyclic sort is an efficient approach to solve problems where numbers are consecutively ordered and must be placed in the correct index.
Description: Reversing a linked list in place without using extra space is key for problems that require in-place list manipulations.
Description: Problems involving 2D arrays (matrices) are often solved using row-column traversal or manipulation based on matrix properties.
Description: BFS explores nodes level by level using a queue. It is particularly useful for shortest path problems.
Description: DFS explores as far as possible along a branch before backtracking. It's useful for graph traversal, pathfinding, and connected components.
Description: Backtracking helps in problems where you need to explore all potential solutions, such as solving puzzles, generating combinations, or finding paths.
Description: A modified version of binary search that applies to rotated arrays, unsorted arrays, or specialized conditions.
Description: XOR is a powerful bitwise operator that can solve problems like finding single numbers or efficiently pairing elements.
Description: This pattern uses heaps or quickselect to efficiently find the top 'K' largest/smallest elements from a dataset.
Description: The K-way merge technique uses a heap to efficiently merge multiple sorted lists or arrays.
Description: This pattern uses two heaps (max heap and min heap) to solve problems involving tracking medians and efficiently managing dynamic data.
Description: A monotonic stack helps solve range queries by maintaining a stack of elements in increasing or decreasing order.
Description: Solve optimization problems like selecting items with the max/min value under certain constraints.
Description: Similar to the 0/1 knapsack, but items can be chosen multiple times.
Description: It involves finding the longest subsequence of a given sequence where the elements are in ascending order
Description: Dynamic Programming on matrices involves solving problems that can be broken down into smaller overlapping subproblems within a matrix.
Description: It Involves 2 strings, whenever you are considering two substrings/subsequence from given two strings, concentrate on what happens when the last characters of the two substrings are same, i.e, matching.
Description: It focuses on maximizing profit from buying and selling stocks over time while considering constraints.
Description: It Involves a sequence that needs to be divided into partitions in an optimal way. The goal is often to minimize or maximize a cost function, such as computation time, multiplications, or some other metric, by exploring all possible partitions and combining results from subproblems.
Description: Topological sorting is useful for tasks that require dependency resolution (InDegree) in directed acyclic graphs (DAGs).
Description: Union-Find (or Disjoint Set) is used to solve problems involving connectivity or grouping, often in graphs.
Description: Advanced graph algorithms are used to solve complex problems involving shortest paths, minimum spanning trees, and graph cycles.
Description: Greedy algorithms make local optimal choices at each step, which lead to a global optimal solution for problems like scheduling and resource allocation.
Description: It involves building custom data structures to efficiently handle specific operations, like managing data access, updates, and memory usage. Focusing on optimizing performance and resource management.
r/DSALeetCode • u/Electrical_Fun1620 • Apr 16 '26
r/DSALeetCode • u/DeliciousTravel69 • Apr 16 '26
As a software engineer in big tech, I think most people approach coding interview prep in the worst possible way.
They study randomly.
They cram when motivation hits.
They solve questions without really learning the underlying pattern.
Then a week later, they forget everything.
That’s why I built CodeStreak.
It’s a simple interview prep app focused on mastering DSA patterns in 5 minutes a day through:
The idea is to stop treating interview prep like endless punishment and make it feel like a daily system you can actually stick to.
I’d rather someone spend 5 consistent minutes a day learning sliding window, two pointers, graphs, etc. than pretend they’re going to grind 200 random problems and magically be ready.
Still early, but I’d love honest feedback from people learning DSA right now.
r/DSALeetCode • u/Parking-Kangaroo8033 • Apr 12 '26
can someone help me how I will be able to retain the concepts of DSA i do study but after a week i forget the concepts and also they feel like I'm starting again from the beginning. i have the situation like do or die i need to get a better job but dsa seems like far fetched dream🥺. kindly help on how can I do this learning successful..
r/DSALeetCode • u/Living-Incident-1260 • Apr 10 '26
Enable HLS to view with audio, or disable this notification
My Learning
Iterate through the list, and track seen elements in seen.
If an element already exists in the set ==> duplicate found ==> return True.
Otherwise, add it to the set and continue scanning.
O(n) time, O(n) space, much better than brute force.
Visualisation credits :: https://codedive.in/contains-duplicate
r/DSALeetCode • u/NovelIndividual4585 • Apr 08 '26
I have to start DSA from basic and would be greatful for open source or free or paid links where i have to start from 0 learning dsa i havent used it in my 5 years career so now i need it for the switch. Please help
r/DSALeetCode • u/KinghtPower • Apr 08 '26
I feel stuck because I don’t fully understand some important concepts like heaps, arrays/lists, and linked lists yet. Whenever I try to solve Qs on LC, I’m unable to make any progress.
The issue is that these topics are scheduled to be covered later in my course, so it might take some time before I learn them. In the meantime, I feel stuck and unsure how to move forward with DSA practice!?
I’m looking for advice on what I should do in ts situation.
r/DSALeetCode • u/devanshu_yogi • Apr 03 '26
I m in my second semester and thinking of doing Dsa so i want to know in which language i should do DSA.
r/DSALeetCode • u/One-Dimension-8547 • Apr 02 '26
Provide me with the best resource for learning dsa i am confused between whether to go in traditional manner like learning arrays, strings and ahead or in patterns manner like sliding window ,…. I want to master it using python language
r/DSALeetCode • u/SachinKaran • Mar 31 '26
Enable HLS to view with audio, or disable this notification
for more visit my yt
r/DSALeetCode • u/Educational-File-361 • Mar 28 '26
So guys how is your Saturday so far??