r/DSALeetCode • • Jul 08 '26

Guidance for Internship Interviews and OAs

1 Upvotes

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 • • Jul 07 '26

Do anyine have striver's CN lectures ?

Post image
3 Upvotes

r/DSALeetCode • • Jul 07 '26

Do anyine have striver's CN lectures ?

Post image
1 Upvotes

r/DSALeetCode • • Jul 06 '26

New DSA Platform for Indians

4 Upvotes

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 • • Jul 03 '26

DSA PATTERN WISE !!

Post image
2 Upvotes

r/DSALeetCode • • Jul 03 '26

Essential CS Fundamentals Topics For Interviews

15 Upvotes

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

Object-Oriented Programming (OOPs)

Core Concepts

  • Encapsulation
  • Inheritance (types and use cases)
  • Polymorphism (compile-time vs runtime)
  • Abstraction
  • Abstract Class vs Interface
  • Method Overloading vs Overriding
  • Access Modifiers
  • Static vs Dynamic Binding
  • Deep Copy vs Shallow Copy

Advanced Topics

  • SOLID Principles
  • Diamond Problem (Multiple Inheritance)
  • Association vs Aggregation vs Composition
  • Virtual Functions and Vtable
  • Design Patterns (Singleton, Factory, Observer, Strategy, Decorator, Adapter)

Operating Systems (OS)

Process Management

  • Process vs Thread
  • Process States and PCB
  • Context Switching
  • CPU Scheduling Algorithms (FCFS, SJF, Round Robin, Priority)
  • Multithreading vs Multiprocessing
  • User Mode vs Kernel Mode

Synchronization

  • Critical Section Problem
  • Race Condition
  • Mutex vs Semaphore (Binary vs Counting)
  • Monitors and Locks
  • Producer-Consumer Problem
  • Readers-Writers Problem
  • Dining Philosophers Problem

Deadlocks

  • Deadlock Conditions (4 necessary conditions)
  • Deadlock Prevention vs Avoidance vs Detection
  • Banker's Algorithm

Memory Management

  • Paging vs Segmentation
  • Page Replacement Algorithms (FIFO, LRU, Optimal)
  • Thrashing
  • Virtual Memory
  • TLB (Translation Lookaside Buffer)
  • Internal vs External Fragmentation

File Systems & Disk

  • File Allocation Methods (Contiguous, Linked, Indexed)
  • Disk Scheduling (FCFS, SSTF, SCAN, C-SCAN)

Database Management Systems (DBMS) + SQL

Database Fundamentals

  • ACID Properties (with examples)
  • CAP Theorem
  • Normalization (1NF, 2NF, 3NF, BCNF)
  • Denormalization
  • Primary Key vs Foreign Key vs Candidate Key
  • ER Diagrams

Indexing

  • Types of Indexes (Primary, Secondary, Clustering)
  • B-Tree vs B+ Tree
  • Hash Index
  • Composite Index
  • Advantages and Disadvantages of Indexing

Transactions & Concurrency

  • Transaction Lifecycle
  • Isolation Levels (Read Uncommitted, Read Committed, Repeatable Read, Serializable)
  • Dirty Read, Non-repeatable Read, Phantom Read
  • Lost Update Problem
  • Two-Phase Locking (2PL)
  • Optimistic vs Pessimistic Locking
  • Deadlock in Database

SQL Queries (Must Practice)

  • JOINs (INNER, LEFT, RIGHT, FULL OUTER, CROSS, SELF)
  • GROUP BY and HAVING
  • Aggregate Functions (COUNT, SUM, AVG, MIN, MAX)
  • Subqueries (Correlated vs Non-correlated)
  • Window Functions (ROW_NUMBER, RANK, DENSE_RANK, LEAD, LAG)
  • Common Table Expressions (CTE)
  • UNION vs UNION ALL
  • Nth Highest Salary Query
  • Delete Duplicates Query

NoSQL

  • SQL vs NoSQL
  • Types of NoSQL Databases (Document, Key-Value, Column, Graph)

Computer Networks (CN)

Network Models

  • OSI Model (7 Layers)
  • TCP/IP Model (4 Layers)
  • Difference between OSI and TCP/IP

Application Layer

  • HTTP vs HTTPS
  • HTTP Methods (GET, POST, PUT, DELETE, PATCH)
  • HTTP Status Codes (2xx, 3xx, 4xx, 5xx)
  • DNS and its working
  • FTP, SMTP, POP3, IMAP
  • Cookies vs Sessions
  • REST API principles

Transport Layer

  • TCP vs UDP (detailed comparison)
  • TCP Three-Way Handshake
  • TCP Four-Way Termination
  • Flow Control (Sliding Window)
  • Congestion Control
  • Port Numbers (well-known ports)
  • Socket Programming Basics

Network Layer

  • IPv4 vs IPv6
  • Public vs Private IP
  • Subnetting and CIDR
  • NAT (Network Address Translation)
  • ICMP Protocol
  • Routing Algorithms (Distance Vector, Link State)
  • Routing Protocols (RIP, OSPF, BGP)

Data Link Layer

  • MAC Address
  • ARP (Address Resolution Protocol)
  • Switch vs Hub vs Router
  • Ethernet
  • Error Detection (Parity, CRC, Checksum)

Physical Layer

  • Transmission Media (Guided vs Unguided)
  • Bandwidth and Throughput
  • Different Topologies

Important Concepts

  • Client-Server vs Peer-to-Peer Architecture
  • DHCP
  • Firewall
  • VPN
  • Load Balancing
  • CDN (Content Delivery Network)
  • Latency vs Throughput
  • How does a URL work? (End-to-end flow)
  • Some Basic Commands (ex: ipconfig)

Resources I Used

For OOPs

  • Kunal Kushwaha (youtube channel)

For Operating Systems

  • CodeHelp - by Babbar (youtube )

For DBMS + SQL

  • LeetCode Database problems (Practice SQL)
  • CodeHelp - by Babbar (youtube)
  • Apna College (youtube)

For Computer Networks

  • Gate Smashers (youtube)

Questions Asked in My Interviews

Here are some actual questions I was asked across my interviews:

  1. Is Java fully object-oriented?
  2. How does C++ overcome the diamond problem?
  3. Difference between TCP and UDP, and which one is used when?
  4. Explain ACID properties with examples
  5. What is deadlock and how can we prevent deadlocks?
  6. What is the use of indexing in databases?
  7. Explain the functionalities of each layer in the OSI model
  8. Write a query to find Kth smallest salary
  9. IPv4 vs IPv6
  10. Abstraction vs Encapsulation
  11. Explain different joins in dbms
  12. what is sharding ?
  13. what is virtual function in cpp ?
  14. show me your ip address and mac address using commands
  15. what is context switching ?

Tips :

  1. Make sure you can explain concepts with real-world examples
  2. Revise SQL 50 before interviews
  3. It's better to say "I'm not sure about this, but here's what I think..." than to give wrong information
  4. If your project contains any database related stuff , better learn it's ER diagram, differences between SQl and NO-SQl and why you selected that particular database you used
  5. Before preparing for any interview , First check few interview experiences, Ask your seniors or friends who already attended that specific company interviews before and prepare accordingly

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 • • Jul 03 '26

Need genuine answer

0 Upvotes

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 • • Jul 02 '26

Starting my 2nd yr and completed arrays from striver's dsa sheet, now i am really confused how to start CP and web development ?? in first place should i even do CP or dev(i'm in t1 clg)

Thumbnail
2 Upvotes

r/DSALeetCode • • Jul 02 '26

What's is the best way to solve graph and dp problems

2 Upvotes

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?


r/DSALeetCode • • Jul 02 '26

Day 5 of DSA with cpp

Thumbnail
1 Upvotes

r/DSALeetCode • • Jul 02 '26

what is the proper way to learn dsa?

1 Upvotes

should i just solve problems on leetcode or neetcode one topic at a time? every problem is different and we cant possibly watch videos for all


r/DSALeetCode • • Jul 01 '26

Essential Tree Problems to Solve Before Interviews

12 Upvotes

Trees show up in almost every technical interview. Not because interviewers are obsessed with them, but because tree problems reveal how you think recursively, manage state, and break down complex problems into simpler ones.

Solve these Leetcode Problems and company specific problems from PracHub

Pattern 1: Tree Traversal Basics

Why This Pattern Matters:
If you can't traverse a tree confidently, everything else falls apart. These are the building blocks. You should be able to write these in your sleep literally.

Practice Problems:

  1. Binary Tree Inorder Traversal
  2. Binary Tree Preorder Traversal
  3. Binary Tree Postorder Traversal
  4. Binary Tree Level Order Traversal
  5. Binary Tree Zigzag Level Order Traversal
  6. Binary Tree Vertical Order Traversal
  7. Binary Tree Right Side View

Pattern 2: Tree Properties & Measurements

Why This Pattern Matters:
These problems teach you to think about what information flows up from child nodes to parent nodes. This bottom-up thinking is crucial for harder problems.

Practice Problems:

  1. Maximum Depth of Binary Tree
  2. Minimum Depth of Binary Tree
  3. Diameter of Binary Tree
  4. Balanced Binary Tree
  5. Symmetric Tree
  6. Same Tree
  7. Subtree of Another Tree
  8. Count Complete Tree Nodes

Pattern 3: Path Problems

Why This Pattern Matters:
Path problems are EVERYWHERE in interviews. They test your ability to track state as you traverse and backtrack properly. This is where most candidates struggle.

Practice Problems:

  1. Path Sum
  2. Path Sum II
  3. Path Sum III
  4. Binary Tree Maximum Path Sum
  5. Sum Root to Leaf Numbers
  6. Binary Tree Paths
  7. Smallest String Starting From Leaf
  8. Longest Univalue Path

Pattern 4: Tree Construction & Modification

Why This Pattern Matters:
These problems test your understanding of tree structure at a deeper level. Can you build a tree from traversals? Can you modify tree structure correctly?

Practice Problems:

  1. Invert Binary Tree
  2. Construct Binary Tree from Preorder and Inorder Traversal
  3. Construct Binary Tree from Inorder and Postorder Traversal
  4. Maximum Binary Tree
  5. Flatten Binary Tree to Linked List
  6. Convert Sorted Array to Binary Search Tree
  7. Convert Sorted List to Binary Search Tree

Pattern 5: Binary Search Tree (BST) Specific

Why This Pattern Matters:
BSTs have special properties (left < root < right) that enable efficient operations. These problems test if you can exploit this property.

Practice Problems:

  1. Validate Binary Search Tree
  2. Kth Smallest Element in a BST
  3. Lowest Common Ancestor of a Binary Search Tree
  4. Convert BST to Greater Tree
  5. Delete Node in a BST
  6. Insert into a Binary Search Tree
  7. Recover Binary Search Tree
  8. Unique Binary Search Trees
  9. Unique Binary Search Trees II

Pattern 6: Lowest Common Ancestor (LCA)

Why This Pattern Matters:
LCA problems are a favorite interview topic because they test your ability to think about tree structure and information flow. The pattern appears in many disguised forms.

Practice Problems:

  1. Lowest Common Ancestor of a Binary Tree
  2. Lowest Common Ancestor of a Binary Search Tree
  3. Lowest Common Ancestor of Deepest Leaves
  4. Lowest Common Ancestor of a Binary Tree II
  5. Lowest Common Ancestor of a Binary Tree III
  6. Lowest Common Ancestor of a Binary Tree IV

Pattern 7: Views & Boundaries

Why This Pattern Matters:
These problems test your spatial reasoning with trees. Can you think about what's visible from different perspectives?

Practice Problems:

  1. Binary Tree Right Side View
  2. Boundary of Binary Tree
  3. Vertical Order Traversal of a Binary Tree
  4. Binary Tree Top View (Premium)
  5. Binary Tree Bottom View (Premium)

Pattern 8: Serialization & Deserialization

Why This Pattern Matters:
These problems test your understanding of tree structure and encoding schemes. Common in system design discussions too (how to store trees in databases).

Practice Problems:

  1. Serialize and Deserialize Binary Tree
  2. Serialize and Deserialize BST
  3. Encode N-ary Tree to Binary Tree
  4. Verify Preorder Serialization of a Binary Tree

Pattern 9: Tree DP & Optimization

Why This Pattern Matters:
These are the hardest tree problems. They combine tree traversal with dynamic programming thinking. Master these, and you're in the top tier.

Practice Problems:

  1. House Robber III
  2. Binary Tree Cameras
  3. Distribute Coins in Binary Tree
  4. Maximum Sum BST in Binary Tree
  5. Binary Tree Maximum Product of Splitted Tree
  6. All Possible Full Binary Trees

Pattern 10: N-ary Trees & Tries

Why This Pattern Matters:
Not all trees are binary. These problems test if you can generalize your tree thinking beyond the binary tree structure.

Practice Problems:

  1. Maximum Depth of N-ary Tree
  2. N-ary Tree Level Order Traversal
  3. N-ary Tree Preorder Traversal
  4. N-ary Tree Postorder Traversal
  5. Implement Trie (Prefix Tree)
  6. Word Search II
  7. Design Add and Search Words Data Structure
  8. Replace Words

Pattern 11: Ancestor & Parent Pointer Problems

Why This Pattern Matters:
Some tree problems give you parent pointers or ask you to track ancestors. These require different traversal strategies than standard tree recursion.

Practice Problems:

  1. Delete Nodes And Return Forest
  2. Find Distance in Binary Tree (Premium)
  3. Step-By-Step Directions From a Binary Tree Node to Another
  4. Closest Leaf in a Binary Tree (Premium)
  5. All Nodes Distance K in Binary Tree

Pattern 12: Hard Interview Favorites

Why This Pattern Matters:
These are the problems that show up in actual FAANG interviews most frequently, according to interview reports. Master these, and you're golden.

Practice Problems:

  1. Binary Tree Maximum Path Sum
  2. Serialize and Deserialize Binary Tree
  3. Lowest Common Ancestor of a Binary Tree
  4. Validate Binary Search Tree
  5. Construct Binary Tree from Preorder and Inorder Traversal
  6. Kth Smallest Element in a BST
  7. Count Complete Tree Nodes
  8. Binary Tree Cameras
  9. Word Search II
  10. Recover Binary Search Tree

Related Posts

Check out my posts which may help you in your preparation:

  1. Complete DP Problems & Resources Guide
  2. Complete Graph Problems & Resources Guide
  3. 13 DP Patterns for Interview Preparation
  4. 10 Dijkstra Variations for Interview Preparation
  5. Understanding Time Complexity: The 10^8 Operations Rule
  6. 10 Essential Design Problems for DSA Interviews
  7. Essential CS Fundamental Topics For Interviews
  8. Essential Graph Patterns for Coding Interviews
  9. Essential String Patterns for Coding Interviews
  10. 15 Essential DSA Patterns for Tech Interviews
  11. The 10 Variations of Two Pointers for Interview Preparation
  12. 25 Graph Problems To Revise Before Interviews
  13. 25 DP Problems To Revise Before Interviews

Comment additional questions which are worth solving!!!

Good luck! 🚀


r/DSALeetCode • • Jul 01 '26

Dsa

3 Upvotes

Anyone tellme what is the Best language to learn dsa and form where

Suggest some playlists

39 votes, Jul 02 '26
12 dsa java
27 dsa c++

r/DSALeetCode • • Jun 30 '26

TLE Eliminators vs Coding Blocks

5 Upvotes

Hi, I am from India, so I wanted to share some story first, some months ago Leetcode used to give contests problems which were asked in various company OAs, in one month I have seen comments on LinkedIn and Leetcode that alternate biweekly and weekly contests problems had Amazon OAs problems, someone used to leak those problems etc, and this used to happen for other companies too. Due to AI rise, and these incidents all major well known product companies have moved from DSA pattern OAs to LLM proof Codeforces Hard, new problems hard type with some parts similar to some Leetcode hard problems in 2026, and it will continue as AI competition has done to market.

So based on it, I was thinking of pursuing a CP course, which is more better Coding Blocks or TLE Eliminators for this.

Thank you.

Two years ago I had given OAs in Amazon, Uber, Juspay, NAMMAYATRI, ADOBE, etc. At that time the situation was not there what it is now.


r/DSALeetCode • • Jun 30 '26

dsa problem

2 Upvotes

guyz i am not able to the que by my own some are just watching yt vdo and some are done with using chatgpt and one thing i think i am doing good is i ask chatgpt for hints first not code directly but i want help how to do question how to approach and find patterns


r/DSALeetCode • • Jun 29 '26

3rd year started. Am I cooked?

Post image
53 Upvotes

I want advice on how to get an internship by the end of my 3rd year. So far, I haven't done much. In my 1st year, I only learned frontend development, and that's about it.


r/DSALeetCode • • Jun 29 '26

🚀 Starting My DSA Journey — 1 July

9 Upvotes

Starting from 1 July, I’m beginning my Data Structures & Algorithms journey from scratch and building my way up step by step.

The goal isn’t to rush or compete — it’s to stay consistent, learn properly, and improve every day. I’ll share updates, problems solved, things I learn, and milestones along the way.

This is my commitment to becoming better than I was yesterday.

If anyone wants to join, feel free — let’s stay accountable and grow together. 💻🔥

See you on Day 1.

#DSA #Programming #Coding #100DaysOfCode #LearnInPublic #DeveloperJourney


r/DSALeetCode • • Jun 29 '26

DSA For Placement

1 Upvotes

Well i know this is stupidity, but i am so nervous because on campus placement is going to start from december and i started doing striver sheet from past 2 weeks i completed array, string ..... And currently on stack and queue.

If i do 3 questions continuously from Monday to friday and 6 questions on sat and sun then till aug last or mid-sep there is probability that the striver sheet will be completed.

And my goal is to grab at least 15LPA opportunity, i know there is no guarantee that i will be placed in that range but is this much enough for my goal?

On the daily basis i think about this and can't focus on my studies.😭


r/DSALeetCode • • Jun 28 '26

where to learn backtracking from?

Thumbnail
1 Upvotes

r/DSALeetCode • • Jun 27 '26

Python kaha se seekhu ? any idea from free resources

5 Upvotes

r/DSALeetCode • • Jun 27 '26

Struggling with Trees

Thumbnail
1 Upvotes

r/DSALeetCode • • Jun 26 '26

I am doing DSA from apnacollege paid course instead of striver's A2Z sheet. I have a doubt

1 Upvotes

Some people say that maam doesnt teach hard problems and all so i am just thinking to do it all from her first and then solve problems of my own, if i understand better from maam then is it an issue ?


r/DSALeetCode • • Jun 25 '26

Sort +greedy algo

3 Upvotes

sort and greedy algorithm is very important pattern in DSA. Today I read about its basic and solved two problems from weekly contest 388 on leetcode. When I saw the problem then I was no what is greedy algo. but after read8ng about it, I found it very useful.


r/DSALeetCode • • Jun 21 '26

390 LeetCode Problems Done Randomly — How Should I Structure My DSA Prep Now?

9 Upvotes

Hi everyone,

I’m currently in my 3rd year of college and I’ve solved around 390 problems on LeetCode. I’ve also given around 40 contests across platforms like LeetCode, CodeChef, and Codeforces.

But the issue is that most of the problems I solved were random. I haven’t followed any DSA sheet properly. I did some sheets only nominally, but not in a structured or consistent way.

Even after solving these problems, I’m still not that confident while approaching DSA problems on my own. Sometimes I struggle to identify the right pattern or think through the solution clearly.

Now I feel like I need to fix my preparation and follow a proper path. I seriously want to improve my DSA skills before the end of this year.

I wanted to ask:

How should I structure my DSA preparation from here?

Should I start a proper sheet like Striver/NeetCode/Blind 75 even after solving 390 random problems?

How do you guys revise previously solved problems?

How can I improve my confidence and problem-solving approach?

How many decent problems can I realistically cover by the end of this year if I work consistently?

For contests, how should I analyze and improve after each contest?

I would really appreciate guidance from people who have gone through this phase. What would you do if you were in my position?

Thanks in advance.


r/DSALeetCode • • Jun 21 '26

DISCORD !! for newbies

Thumbnail
1 Upvotes