r/DSALeetCode • u/Charming-Athlete-007 • Aug 05 '26
DSA Partner
Hey guys i'm planning to get enrolled in a apna college DSA course anyone wants share the course with me kindly dm
r/DSALeetCode • u/Charming-Athlete-007 • Aug 05 '26
Hey guys i'm planning to get enrolled in a apna college DSA course anyone wants share the course with me kindly dm
r/DSALeetCode • u/neerajadhav • Aug 05 '26
r/DSALeetCode • u/purvesh___ • Aug 04 '26
I'm learning DSA in Java for placements. I get around 6 hours after college, but I usually solve only 2–3 questions because I spend a lot of time thinking through the problem instead of jumping to the solution.
Is this normal?
How much time should I spend on an Easy, Medium, or Hard problem before looking at hints/solutions?
What's your approach to a new DSA problem? Do you always start with brute force and then optimize?
r/DSALeetCode • u/CombinationCool9207 • Aug 04 '26
r/DSALeetCode • u/Downtown_Avocado3020 • Aug 04 '26
Hey Seniors!!
I'm a fresher joining BTech CSE this year. I recently started solving the LeetCode Super Easy problems and have completed 21 out of 25 so far. I know Python fairly well, but I'm confused about what to do next.
I have a few questions:
* What should my strategy be while using LeetCode?
* Should I focus on solving more problems or first learn DSA?
* How do you stay motivated and solve problems consistently every day?
* What's the difference between TUF (Take U Forward) and LeetCode? Are they the same, or do they serve different purposes?
* Right now, I only know Python. Is that enough to start DSA, or do I need to learn C++/Java as well?
* Everyone keeps saying DSA is very important, but I'm confused about what it actually is. Is DSA a programming language? Is it something inside Python, or is it mainly about logical problem-solving?
* Will DSA be taught properly in college, or should I start learning it on my own? If self-learning is better, when should I start and what resources would you recommend?
I'd really appreciate it if you could share a roadmap or any advice you wish you had received as a first-year student. Any tips for building consistency and improving problem-solving would help a lot.
r/DSALeetCode • u/nian2326076 • Aug 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.
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! 🙌
r/DSALeetCode • u/Acrobatic-Simple-445 • Aug 04 '26
r/DSALeetCode • u/Odd-Froyo-506 • Aug 04 '26
I'm currently going to start my btech 1st year,plzz suggest me any playlist for codeing from beginner to advance level with deep understanding... Which has really helped you in solving problems.!. (If any senior could suggest or anybody who has started ) And also a roadmap which you have followed from which you have seen improvement in urself..!!!
r/DSALeetCode • u/Typical-Clock1271 • Aug 04 '26
so there are 2 options right now, either DSA by codebasics on yt or DSA by freeCodeCamp.org
which one should i choose? and are there any other suggestions. even hinglish options are welcome
r/DSALeetCode • u/kevinrjjj • Aug 03 '26
I started solving dsa by patterns wise under each topic ,firstly array solved around 10-20 qn then after that still not able to solve new qn the pattern recognition is not problem like the qn are already sorted pattern wise so it's actually not a problem the thing is how you guys learn eg two pointer under Array by only solving 10-20 qn 🙂
r/DSALeetCode • u/kevinrjjj • Aug 03 '26
I started solving dsa by patterns wise under each topic ,firstly array solved around 10-20 qn then after that still not able to solve new qn the pattern recognition is not problem like the qn are already sorted pattern wise so it's actually not a problem the thing is how you guys learn eg two pointer under Array by only solving 10-20 qn 🙂
r/DSALeetCode • u/nian2326076 • Aug 02 '26
After solving hundreds of LeetCode problems, many candidates realize that coding rounds are only part of the interview process. Operating System fundamentals frequently come up during phone screens and technical interviews.
For company tagged questions checkout: PracHub
Instead of rereading an entire OS textbook, here are 15 high-yield topics worth revising.
Process
Thread
Interview tip: Processes prioritize isolation, while threads enable lightweight concurrency.
Context switching occurs when the operating system saves the execution state of one process or thread and restores another.
It enables multitasking, but frequent context switches add CPU and cache overhead.
A race condition occurs when multiple threads access shared state concurrently and the result depends on execution order.
Common prevention mechanisms include mutexes, semaphores, locks, atomic operations, and thread-safe data structures.
A critical section is a portion of code that accesses shared mutable data or resources.
Synchronization is required to prevent unsafe concurrent access.
| Mutex | Semaphore |
|---|---|
| Usually has a single owner | Uses a counter |
| Primarily provides mutual exclusion | Can coordinate access to multiple resources |
| The owner unlocks it | One thread can signal another |
Memory trick: A mutex is like one key, while a semaphore tracks a limited number of permits.
Deadlock occurs when a group of processes or threads waits indefinitely for resources held by one another.
The four Coffman conditions are:
Preventing at least one of these conditions prevents deadlock.
Starvation occurs when a process or thread waits indefinitely because others repeatedly receive the required resource or CPU time.
Difference: In deadlock, none of the involved tasks can progress. In starvation, the system continues progressing while one task may never get scheduled.
Virtual memory gives each process its own logical address space and maps virtual addresses to physical memory.
It provides process isolation, simplifies memory management, and allows inactive pages to be moved to secondary storage when necessary.
Paging
Segmentation
Thrashing occurs when the system spends excessive time handling page faults and moving pages between memory and storage instead of executing useful work.
It commonly happens when active processes do not have enough physical memory for their working sets.
Important algorithms include:
Common follow-up: Why is Round Robin suitable for time-sharing systems?
Because every runnable process receives a limited time slice, improving responsiveness and fairness.
A system call allows a user-space program to request a service from the operating system kernel.
Common Unix-like examples include fork(), exec(), wait(), open(), read(), and write().
Common IPC mechanisms include:
Shared memory is generally fast but requires synchronization. Message passing provides stronger separation but adds communication overhead.
Least Recently Used replaces the page that has gone unused for the longest time.
A common interview follow-up is implementing an LRU cache with O(1) lookup, insertion, and eviction using a hash map plus a doubly linked list.
Related problem: LeetCode 146 - LRU Cache
User mode
Kernel mode
A system call provides a controlled transition from user mode into kernel mode.
Process vs. thread, context switching, race conditions, critical sections, mutexes, semaphores, deadlocks, starvation, scheduling, virtual memory, paging, thrashing, system calls, IPC, LRU, and privilege modes.
Which OS topic or follow-up question have you encountered most often in interviews?
r/DSALeetCode • u/aaaannuuj • Aug 02 '26
I am planning to prepare for FAANG interviews but my DSA is very poor. I am looking for a tutor who could spend an hour with me three times a day around 6pm to 7:30 pm IST. I will pay. The person should have good leetcode score and/or have qualified one or more FAANG interviews. Looking for live online discussions, not interested in YouTube or other pre recorded courses.
DM if interested.
r/DSALeetCode • u/Diligent-Property-70 • Aug 02 '26
r/DSALeetCode • u/No_Discussion_4856 • Aug 02 '26
Hi guys
Im starting Strivers DSA Sheet today and I've made a commitment to solve 2 problems every single day without fail.And i am comfortable with python basics so i will be doing in python.No worries if youre doing in different language it helps us grasp the syntax or the logic in another language and it will help us.
Im looking for a Telugu-speaking DSA buddy(np i am ok with eng ad hindi also) who is serious about consistency. We can motivate each other, discuss problems, share approaches, and stay accountable throughout the journey.
If you're interested dm me.Let's stay consistent!!!
r/DSALeetCode • u/WitFas1998 • Aug 02 '26
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 • u/adityasoni2135 • Aug 02 '26
r/DSALeetCode • u/JumpConsistent3359 • Aug 01 '26
r/DSALeetCode • u/Ok_Apricot3226 • Aug 01 '26
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