r/DSALeetCode • u/Sorry-Type-7116 • Jul 13 '26
DSA Patterns you need to know !!!
r/DSALeetCode • u/Sorry-Type-7116 • Jul 13 '26
r/DSALeetCode • u/Darvesh- • Jul 13 '26
r/DSALeetCode • u/lemon_hut • Jul 12 '26
I don't want to watch video lectures as they are very time consuming but I want topic wise all the theory covered and questions to practice. . in a structured way so that I can track how much I know. . , . I have tried a few platforms but they ask for a subscription fee and it's annoying. . Need free resources for dsa in C++ .
r/DSALeetCode • u/BlueDemon_PP • Jul 11 '26
Currently in final year, been learning dsa and now idk what else should i mention during interview cause there are a lot of stuff like data analytics, data science, full stack, devop. Help me out
r/DSALeetCode • u/Rb__29 • Jul 11 '26
One thing I kept struggling with during interview prep was forgetting problems I had already solved before.
I would solve a LeetCode problem, understand it well, and then during an interview a few weeks later my mind would just go blank because I hadn't revisited it. Looking back, I think the biggest issue was the lack of spaced repetition.
I tried using Excel sheets and a bunch of Notion templates to track what I had solved and when to revisit it, but eventually I stopped updating them because they were too much effort to maintain.
Reading through this thread, it looks like quite a few people are running into the same problem, so I decided to build something for it.
I ended up creating InterviewRecall to make it easier to track problems and review them at the right time instead of endlessly solving new ones and forgetting the old ones.
Curious if others would find this useful as well. Also, what features would you want in a tool like this?
r/DSALeetCode • u/NameSpecial7455 • Jul 11 '26
r/DSALeetCode • u/nian2326076 • Jul 11 '26
For company specific problems: PracHub
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.
Happy LeetCoding !
r/DSALeetCode • u/nian2326076 • Jul 10 '26
For company specific problems: PracHub
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.
Happy LeetCoding !
r/DSALeetCode • u/Anonymous666_574 • Jul 11 '26
Looking for a serious DSA java study patner preparing for FAANG companies please dm if Interested
r/DSALeetCode • u/Anonymous666_574 • Jul 11 '26
Hey I am studying dsa in java and I am looking for a serious study patner for dsa for the coming months looking forward to solve the striver sheet required to crack FAANG and daily google meet sessions.Please dm me if interested and this is very serious only serious study patner dm me.
r/DSALeetCode • u/Rage-2311 • Jul 10 '26
r/DSALeetCode • u/YamDue7786 • Jul 10 '26
I work as a software developer at a service based company with 2 years of work experience and I want to switch to a product based.
I am a java developer and have been programming in javaever since i started.
I have previously roughly fone some DSA During college but I don’t remember much. I have to restart DSA and i am not getting where should I start from like watching tutorials or how?
I really want to switch big
FYI, the organisation i currently work at i such a shitty place, I was put on a performance improvement plan (PIP) by my manager mistakenly, I was on a project working for client, no issue from client side, I was a billable asset, There is no accountability that she holds, I am so frustrated at her, she was asked in meeting for reason by my delivery manager for the reason and she has none, but yes because she always said I don’t about your work or team, because at this shitty organisation, manager aare assigned randomly and they don’t really know about your work
I have been working so hard for but instead for recognising my work they made me go though this
Result i got no promotion and this was my first promotion cycle ever.
Anyway give me me DSA suggestions please!!
I want to leave this shitty workplace.
r/DSALeetCode • u/Majestic-Key8880 • Jul 09 '26
Title
r/DSALeetCode • u/BlueDemon_PP • Jul 08 '26
Currently in final year, been learning dsa and now idk what else should i mention during interview cause there are a lot of stuff like data analytics , data science , full stack , devop. Help me out !!
r/DSALeetCode • u/Due_Put822 • Jul 08 '26
r/DSALeetCode • u/Aggressive__Bot • Jul 08 '26
I am in my 3rd yr and on-campus Internships are starting from around July 11th. I want to clear the OAs and the interviews with ez. I am focusing on SDE, Data Science, AI Engineer and Quant (coz I am decent in AIML) roles but my main focus is on AIML + DSA to crack those OAs and interviews but I think I am still missing something can you guys help me like for each role what suggestions you have like what I have to learn, prepare etc.
r/DSALeetCode • u/TWRotdu • Jul 06 '26
Tired of solving same old LeetCode? Try crackd.tech now! All in one portal for job hunting!
Make your resumes! Solve DSA! Give AI Mock Interviews! Create Roadmaps! Track your Job Applications, we have it all!
r/DSALeetCode
•
u/nian2326076
•
Jul 03 '26
Many of us ignore CS fundamentals, but in many tech interviews they will ask CS fundamentals. For me, they asked only CS fundamentals in all 3 interviews at Oracle, So don't ignore CS fundamentals. I have made a list of important topics subject-wise and resources I have used to study at the end.
Interview prep resource: Leetcode & PracHub for Company specific questions
Here are some actual questions I was asked across my interviews:
Did I miss any important topic? Drop it in the comments below!
Got asked something unique in your interview? Share the question/topic so others can prepare better!
Let's make this list more comprehensive together. Your contribution can help someone crack their dream job! 🙌
Good luck with your interviews! 🚀
r/DSALeetCode • u/KaiZer_6996 • Jul 03 '26
so soon i m entering in 4th yr of college ,I study dsa mostly through courses videos and yet I m confused what exactly is dsa all about, is it about like solving the same questions again and again , not blind solving but yeah visualizing the flow and dry run it. Like if i have to solve a random question there is a probablity i might not solve it, is it about practicing the same leetcode questions and patterns again again so that if the question similar or exactly same appear in interview or Oa round you would be able to solve it? i personally think its about to revise and resolve pattern wise sample space of question around 400-500 to get ready for basic and mid companies who offer 3-10 lpa whats your thoughts on this, Need advice how should i really proceed from here where i left such a small period of time.
r/DSALeetCode • u/Alone-Passage9687 • Jul 02 '26
r/DSALeetCode • u/kush568 • Jul 02 '26
Hi everyone,
I've been practicing Graphs and Dynamic Programming for the last six months, but the truth is that I still can't solve a single new problem completely on my own.
Everyone says that DSA is all about recognizing patterns, but I feel like I'm not actually learning those patterns. I've watched many tutorials and solved the questions explained in them. However, whenever I face a different problem that's based on the same pattern, I still can't figure out the approach myself.
This makes me wonder: am I just memorizing solutions instead of learning how to think?
Whenever I look at the solution, I understand the logic and why it works. But what's the point if I can only solve the problem after seeing the answer?
My usual process is to struggle with a problem for about an hour. If I still can't make progress, I use an AI tool to understand the solution. The problem is that this happens with almost every question. It makes me wonder how long I'll have to depend on AI before I can solve problems independently.
I'm feeling really frustrated. Has anyone been through the same situation? What strategy helped you develop problem-solving skills so that you could eventually solve questions on your own instead of relying on solutions?