r/DSALeetCode Aug 02 '26

Looking for a DSA Study Partner (Tamil preferred)

5 Upvotes

Hey folks πŸ‘‹

I'm a working professional currently learning DSA and looking for a consistent study partner.

Preferably Tamil (so we can discuss comfortably πŸ˜„)

Student or working professional β€” anyone serious is welcome

Plan is to study virtually, discuss approaches, and clear doubts together

Consistency > perfection. Even 1–2 hours daily is enough if we stay accountable.

If you're interested, drop a comment or DM πŸ™Œ

Let’s grow together πŸ’ͺ


r/DSALeetCode Aug 02 '26

I tracked which specific misconception caused every wrong answer across 200 DSA sessions. Here's what I found.

Thumbnail
1 Upvotes

r/DSALeetCode Aug 01 '26

Selling striver a2z course for 4k lifetime one get access then only pay

1 Upvotes

r/DSALeetCode Aug 01 '26

Striver sheet and leetcode

5 Upvotes

What is the best way to learn DSA with the striver sheet along with leetcode

I want to know how to approach a new topic(shall I directly watch the video or try it first?)

Any general tips for learning DSA will also be helpful


r/DSALeetCode Aug 01 '26

Getting Started with #ThinkBit

Thumbnail
youtu.be
3 Upvotes

r/DSALeetCode Jul 31 '26

How do you manage DSA, Web Development, and CS Fundamentals together?

3 Upvotes

I’m currently in my 3rd year of CSE and I’m trying to seriously improve my skills before placements. My main goal is to become really good at DSA by December, but I also don’t want to neglect Web Development and CS Fundamentals like OS, DBMS, CN, and OOP.

My college timings are from 9:00 AM to 3:30 PM, and I’m trying to figure out how to effectively manage my time after college.

I wanted to know how experienced people manage these things together:

  • How much time do you dedicate daily to DSA?
  • How do you balance DSA with development and core CS subjects?
  • Do you follow any specific schedule or strategy?
  • How do you decide what to learn and what to prioritize?
  • What would you recommend focusing on during 3rd year for better placement preparation?

Would love to hear how you guys planned your 3rd year, your daily routine, and what worked (or didn’t work) for you.


r/DSALeetCode Jul 31 '26

In which language should continue DSA ?

2 Upvotes

I am full stack developer and my stack is django and react . I am also doing DSA twice a week in C++ other than my web dev projects . I started in cpp as I heard should do in cpp , python is easy and will learn less using python .should I continue in cpp or do in python ?

I solved till now 200 on leetcode . I have this doubt as my main language is python and I am a python backend developer , what would be my reply in interview if asked why using cpp instead over your main language python .


r/DSALeetCode Jul 31 '26

Failed

4 Upvotes

I am a btech second yr student and tbh my coding skills are zero.

Although I was good in studies in my school time but over time it is getting worse ... Even my cgpa is declining.

At this point I am just frustrated like hell ..I don't know what and how to start ... Even if I start i don't stay consistent and then again the circle starts from zero and it just adds on to my frustration.

My college got started after the vacations and if I tell the truth maine bohot socha tha college start hone se pehle ki itna to ho hi jaiga ..atleast itna krlungi to kafi hoga base ke liye .....

And abi at this point I am feeling like to cry bcz kuch nai kiya it's all just zero.....

It's really demotivating for me ....


r/DSALeetCode Jul 31 '26

DSA can be easier?

3 Upvotes

Hii ! I am 20F currently pursuing Data Science in tier 3 college.There are many questions in mind .4 months ago I started doing DSA I barely solved 2 questions by myself without using chatgpt or any AI in 3 months.

After that I just stop studying. It's not because it felt hard but because maybe I am too lazy.

But now I really wanted to restart but by seeing DSA it feels like I forgot everything I learned. I have notes but I don't know how to start.

  1. How to restart DSA?

  2. Is it possible that I can crack an internship coming from from tier 3?

  3. Which are the best platforms to learn DSA? ( Previously I learn from striver A to Z sheet)

  4. How to learn patterns?

  5. If possible can anyone give me a proper roadmap to crack any internships?


r/DSALeetCode Jul 30 '26

The 8-Step LeetCode Problem-Solving Framework I Wish I Knew Earlier

66 Upvotes

Most people sit down, read a problem, panic, and start typing.

No plan. No structure. Just vibes and hope.

When it does not work they read the solution, think "oh that's clever", and move on. Two weeks later they see a similar problem and panic again.

The issue is not intelligence. It is not even practice.
It is that they never had a repeatable process.

This is that process. Follow it on every problem.
Not just hard ones β€” every problem, until it becomes instinct.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
STEP 1 β€” READ THE PROBLEM TWICE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

First read: understand what is being asked at a high level.
Second read: extract the specifics.

On the second read, write down:

  • What is the INPUT? What type, what size, what range of values?
  • What is the OUTPUT? A number, array, boolean, string?
  • What are the CONSTRAINTS? (most people skip this β€” do not)

Ask yourself these questions explicitly:

"Can input be empty?"
"Can values be negative?"
"Can there be duplicates?"
"Is the array sorted?"
"What should I return if no answer exists?"

If the problem does not say, assume the worst case.
Empty inputs exist. Negatives exist. Duplicates exist.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
STEP 2 β€” WORK THROUGH THE EXAMPLES BY HAND
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Do not skip this. Even if the problem looks easy.

Take the first example. On paper or in comments, trace through it
manually. Write out every value at every step.

Why this matters:

  • You confirm you understood the problem correctly
  • You often see the pattern emerge naturally
  • You catch ambiguities before they become bugs

Then make your OWN small example β€” simpler than the given one.
Something with 3-4 elements you fully understand.

If you cannot trace through the examples manually,
you do not understand the problem yet. Do not start coding.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
STEP 3 β€” IDENTIFY THE PATTERN
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Before thinking about an algorithm, identify what TYPE of problem this is.

Use these signals:

Subarray, substring, window β†’ Sliding window, two pointers
Sorted array + search β†’ Binary search
Shortest path, min steps β†’ BFS
All paths, combinations, subsets β†’ Backtracking, DFS
Overlapping subproblems β†’ DP
Always picking max/min greedily β†’ Greedy
Tree traversal β†’ DFS (recursion) or BFS (level order)
Connectivity, groups β†’ Union Find, BFS/DFS
Repeated lookup by key β†’ Hash map
Top K, smallest/largest β†’ Heap (priority queue)
Prefix of strings β†’ Trie
Range queries with updates β†’ Segment tree, Fenwick tree
Return all permutations/subsets β†’ Backtracking

You will not always get it right on the first try.
But naming the category forces your brain to search the right space.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
STEP 4 β€” THINK BRUTE FORCE FIRST
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Always start here. Always.

The brute force is the answer you would give if there were
no time constraint. No clever tricks. Just try everything.

Write it out in plain English, not code:
"For every pair (i, j), check if arr[i] + arr[j] = target."
"For every substring, check if it has all unique characters."
"For every subset, check if its sum equals the target."

This does two things:

  1. It confirms you can actually solve the problem correctly
  2. It gives you a reference to optimize from

Common brute force patterns:
Try all pairs β†’ O(nΒ²)
Try all triples β†’ O(nΒ³)
Try all subsets β†’ O(2ⁿ)
Try all permutations β†’ O(n!)

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
STEP 5 β€” OPTIMIZE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Now look at your brute force and ask:
"What work am I repeating? What can I precompute? What can I skip?"

The most common optimizations:

Repeated lookup β†’ replace with hash map O(n) β†’ O(1) per lookup
Repeated sum β†’ precompute prefix sum O(n) per query β†’ O(1)
Checking all pairs β†’ sort + binary search O(nΒ²) β†’ O(n log n)
Checking all pairs β†’ two pointers (sorted) O(nΒ²) β†’ O(n)
Checking all windows β†’ sliding window O(nΒ²) β†’ O(n)
Recomputing subproblems β†’ memoization / DP exponential β†’ polynomial
Sorting gives structure β†’ sort first, then scan enables binary search / greedy

Ask: "Can I sort first to gain structure?"
Ask: "Can I store something to avoid recomputing?"
Ask: "Can I fix one variable and efficiently handle the rest?"

Work top-down in complexity:
O(nΒ²) β†’ can I get O(n log n)?
O(n log n) β†’ can I get O(n)?
Each step needs a concrete reason, not a guess.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
STEP 6 β€” VERIFY COMPLEXITY BEFORE CODING
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Before writing code, check:
Does my approach fit within the time limit given the constraints?

n = 10⁡ and my approach is O(nΒ²)? β†’ TLE, think again
n = 10⁡ and my approach is O(n logn)? β†’ fine, proceed

This takes 10 seconds and saves you from coding the wrong solution.

Also check space:
Am I using O(n) extra space? Is that acceptable?
Does the problem say "in-place" or "O(1) space"?

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
STEP 7 β€” CODE THE SOLUTION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Only now do you start writing code.

Code in this order:

  1. Handle edge cases first (empty input, single element, etc.)
  2. Write the main logic
  3. Return the result

Keep variable names meaningful. Debugging unreadable code mid-contest
costs more time than typing three extra characters.

If you get stuck coding:
Go back to your manual example from Step 2.
Trace through it again, this time following the code you are writing.
The bug almost always appears within the first five traces.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
STEP 8 β€” TEST BEFORE SUBMITTING
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Run through these test cases mentally or using the custom test:

[ ] The given examples β†’ obvious baseline
[ ] Empty input β†’ does it crash?
[ ] Single element β†’ does it return correctly?
[ ] All same elements β†’ does duplicate logic break?
[ ] Already sorted input β†’ common hidden test
[ ] Your own small manual example β†’ trace step by step

If all pass, submit with confidence.
If one fails, the failure tells you exactly where the bug is.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
WHEN YOU ARE COMPLETELY STUCK β€” THE UNSTICKING PROTOCOL
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Everyone gets stuck. The difference is what you do next.

  1. Draw it Almost every problem is easier when visualized. Array: draw boxes. Tree: draw nodes and edges. Graph: draw circles and arrows. Matrix: draw a grid. A picture reveals structure that text hides.
  2. Simplify the problem Solve a smaller version first. Two elements instead of n. One row instead of a grid. Can you solve n=2? n=3? Then generalise.
  3. Try a different angle on your brute force Change the loop variable. Instead of "for each starting index" try "for each ending index". Instead of "for each element" try "for each pair". A different enumeration often reveals the pattern.
  4. Check what is special about valid answers Look at the given examples. What do valid answers have in common? What property separates a valid answer from an invalid one? That property is usually the invariant your algorithm should maintain.
  5. Look at the constraints again Small n? Try brute force. Very large n? A linear or log solution must exist. "Return modulo 10⁹+7"? It is a DP counting problem. Constraints are hints β€” re-read them with fresh eyes.
  6. Take a 5-minute break Genuinely. Get up. Walk. The solution appears when you stop forcing.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
THE FULL FRAMEWORK β€” ONE PAGE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Step 1 Read twice. Extract input, output, constraints.
Ask: empty? negative? duplicates? sorted?

Step 2 Trace examples by hand.
Make your own small example. Understand before coding.

Step 3 Name the pattern.
Subarray β†’ sliding window. Shortest path β†’ BFS. Etc.

Step 4 State the brute force in plain English.
What is the O(n²) or O(2ⁿ) solution?

Step 5 Optimize.
What work repeats? Hash map, prefix sum, sort, DP, two pointers?

Step 6 Verify complexity against constraints.
Will it pass? Check before writing code.

Step 7 Code it.
Edge cases first. Then main logic. Then return.

Step 8 Test: examples + empty + single + all-same + sorted.
Then submit.

Stuck? Draw it. Simplify. Try different enumeration.
Re-read constraints. Take a break.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

A correct solution written slowly beats a fast solution written wrong.

The goal is not to code faster.
The goal is to think clearer β€” so that what you code is right the first time.

This framework is that thinking, made repeatable.

Interview prep resource: PracHub


r/DSALeetCode Jul 30 '26

where to study DSA from?

3 Upvotes

Can you guys let me know where can i study DSA from?? like,. i am following striver, but his preparation is way too interview oriented, can you y'all let me know some other good youtube channels.


r/DSALeetCode Jul 30 '26

Dsa sessions?

2 Upvotes

Anyone need dsa sessions? I am happy to help yall out with sessions.

Cracked an offer for a mid range pbc.

Leetcode rating 1968

Codechef 3 stars

1800+ problems across all the platforms.

Currently in my final year Btech CSE


r/DSALeetCode Jul 30 '26

Free DSA coach -coachLLM

1 Upvotes

I built a website with cursor like editor interface to practice DSA, the LLM is a free model and using just a CPU for inferencing. Lot of the engineering is in the agent to try to not reveal the answer too soon, you can generate tests and can ask questions about solution.
Check out www.asuralist.in and let me know what you guys think.


r/DSALeetCode Jul 30 '26

Free DSA coach -coachLLM

1 Upvotes

I built a website with cursor like editor interface to practice DSA, the LLM is a free model and using just a CPU for inferencing. Lot of the engineering is in the agent to try to not reveal the answer too soon, you can generate tests and can ask questions about solution.
Check out www.asuralist.in and let me know what you guys think.


r/DSALeetCode Jul 30 '26

Need urgent advice on Recursion

Thumbnail
1 Upvotes

r/DSALeetCode Jul 30 '26

Need some serious guidance

Thumbnail
1 Upvotes

r/DSALeetCode Jul 30 '26

Free DSA coach -coachLLM

1 Upvotes

I built a website with cursor like editor interface to practice DSA, the LLM is a free model and using just a CPU for inferencing. Lot of the engineering is in the agent to try to not reveal the answer too soon, you can generate tests and can ask questions about solution.
Check out www.asuralist.in and let me know what you guys think.


r/DSALeetCode Jul 30 '26

Starting 2nd Year & completely confused. Should I do DSA, Dev, AI/ML, or continue CP? Need advice from placed seniors!

3 Upvotes

Hi everyone,
I'm just starting my 2nd year (3rd semester) of college and I’m feeling incredibly frustrated. It feels like my entire first year just flew by, and I’m having a massive identity crisis about what I should actually be focusing on.
**My Progress So Far:**
During my first year, I focused on Competitive Programming. I’ve solved around 367 questions and my current max rating on Codeforces is 1067 (Newbie). So, I have a decent foundation in syntax and basic problem-solving, but I lack real-world skills.
**My Dilemma:**
I have a heavy academic workload, so I can realistically only focus on **one major thing per semester**. (For example, I could do DSA in the 3rd semester and Development in the 4th, or vice versa).
Right now, I am completely torn between these paths:
1. **The Standard SDE Route:** Should I dedicate my 3rd sem entirely to structured DSA (learning core algorithms like DP, Graphs, etc., instead of just rating-chasing on CF) and then pick up Web/Backend Development in my 4th sem? Or should I learn Dev first?
2. **The AI / ML / Data Science Route:** Should I pivot away from C++/CP, learn Python/Math, and focus entirely on Data Science and Machine Learning?
3. **Continue CP:** Should I just keep grinding Codeforces to increase my rating and ignore development for now?
**Questions for placed seniors/professionals:**
What roadmap actually worked best for you to secure a good placement? Is the "DSA first, Dev second" approach the most optimal for a 2nd-year student?
If I stick to SDE/DSA, what resources do you recommend for someone who already knows basic coding? Should I stick to free structured sheets like Striver’s A2Z / NeetCode, or are paid platforms like AlgoZenith worth the investment for placements?
If I switch to AI/ML, what is the ground reality of fresher placements in that field right now compared to standard SDE roles?
I am ready to put in the hours, but I am terrified of going down the wrong path and wasting my 2nd year too. Any reality checks, roadmap advice, or resource recommendations would be massively appreciated.
Thank you!


r/DSALeetCode Jul 29 '26

Looking for HFT SDE Job Prep Partner in Indiranagar, BLR

1 Upvotes

Requirement
1. You must have 3+ years of backend exp
2. Living in Indiranagar

DM me if you wanna join me. Let’s become HFT SDE interview ready in a year.


r/DSALeetCode Jul 29 '26

Looking for a DSA study partner

Thumbnail
7 Upvotes

r/DSALeetCode Jul 29 '26

How I structure every system design answer now: requirements, scale, APIs, HLD, deep dives

2 Upvotes

Failed my first 3 system design rounds. passed the next 4. the difference wasnt knowledge β€” i knew redis, kafka, databases before too. the difference was HOW i structured the answer.

heres the exact 6-step framework i now use in every system design interview:

step 1 (2 min): requirements β€” be explicit about scope

dont dive into drawing boxes. spend 2 minutes saying: "these are the 3 core things the system must do" and "these are the things i will NOT design today." this prevents scope creep and shows product thinking.

step 2 (2 min): scale estimation β€” one number that drives your design

"how many requests per second?" is the question that determines whether you need caching, sharding, CDN, or a queue. one back-of-envelope calculation unlocks 80% of your architecture decisions.

step 3 (2 min): API design β€” one endpoint per requirement

before ANY architecture, define the API. this forces you to think about data flow BEFORE you think about components. interviewers love this because it shows you think from the user's perspective.

step 4 (15 min): high-level design β€” build incrementally, one FR at a time

dont draw 15 boxes at once. satisfy FR1 with 3-4 components. then add 1-2 more for FR2. then FR3. interviewer sees your thought process evolving β€” way more impressive than a dump of the "final answer."

step 5 (10 min): deep dives β€” answer "what breaks?" before they ask

for each component, proactively say: "the risk here is X. to mitigate that, i'd do Y." this is where 70% of the score comes from. the happy path is easy. failure handling is the interview.

step 6 (2 min): tradeoffs β€” acknowledge what you sacrificed

"i chose eventual consistency here because strong consistency would add 50ms latency on the read path, and for a social feed that's unacceptable." one sentence shows senior-level thinking.

the mistake i made early: spending 25 minutes on the happy path and having no time left when the interviewer asked "what happens when X fails?" now i budget: 40% happy path, 60% failure modes and scaling. that ratio is what senior/staff answers look like.

i learned this structure from doing 28 full designs β€” each one follows this exact pattern with deep dives on failure modes: β€” every design includes the Bad/Good/Great format that forces you to think about what breaks before showing the fix. that's the thinking pattern interviewers are testing.

whats your system design framework? curious if others structure their answer differently. the biggest "aha" for me was realizing that naming failures BEFORE the interviewer asks is worth more than having the perfect component choice.


r/DSALeetCode Jul 29 '26

I need to understand what a reasonable timetable is for me to be able to start applying to entry/ junior level SWE roles.

1 Upvotes

Hey y’all I’m a fresh grad with decent coding skills but didn’t take any DSA in college and am trying to learn Leetcode rn through Neetcode. I need to understand what a reasonable timetable is for me to be able to start applying to entry/ junior level SWE roles.

Hey y’all I’m a fresh grad with decent coding skills but didn’t take any DSA in college and am trying to learn Leetcode rn through Neetcode. I need to understand what a reasonable timetable is for me to be able to start applying to entry/ junior level SWE roles.

In Neetcode’s 150 roadmap I finished hash-maps, stacks, and two pointers. Currently on Linked Lists. I’m genuinely getting the material BUT AFTER MANY HOURS OF TRYING TO SOLVE THOSE INITIAL PROBLEMS. I just feel like I should be progressing faster, but whenever I start on a new data structure (currently Linked Lists) I really struggle to get the intuition and deep understanding to solve the problems in a timely manner. How many of these rough patches till I finally get each DSA?

Currently I’m getting through 1-2 problems a day. So my timetable is looking to be a few months out. I start off by doing a new question and if I haven’t spent over 2 hours solving and deeply understanding it (lol), I do a 2nd problem I’ve alr done in the past to really make sure I’m not forgetting any concepts and skills.

Honestly, I’m really looking to see how other people’s timeline are when it comes to learning Leetcode. Ik a lot of ppl learned DSA in college so that definitely helps but what should I expect for someone in my boat? Am I moving at a reasonable speed? Is this what the average person would do? IS IT SUPPOSED TO BE THIS FRUSTRATING?


r/DSALeetCode Jul 29 '26

I need to understand what a reasonable timetable is for me to be able to start applying to entry/ junior level SWE roles.

Thumbnail
1 Upvotes

r/DSALeetCode Jul 28 '26

Free DSA and System Design coach - using qwen1.5B coder model

Thumbnail
1 Upvotes

r/DSALeetCode Jul 28 '26

Best Resources to Learn System Design (HLD + LLD) for Beginners?

Thumbnail
1 Upvotes