DSA #33 - Core Data Structures | Reverse Linked List | Iterative & Recursive
https://youtu.be/8FC8UhEDhvY
https://youtu.be/8FC8UhEDhvY
YouTube
DSA #33 - Core Data Structures | Reverse Linked List | Iterative & Recursive
DSA Phase-3 Core Data Structures tutorial focusing on reversing a Linked List.
In this video you will learn how to understand the reverse linked list problem and solve it using both iterative (3-pointer method) and recursive approaches.
We will walk throughβ¦
In this video you will learn how to understand the reverse linked list problem and solve it using both iterative (3-pointer method) and recursive approaches.
We will walk throughβ¦
β€2
Swap Numbers Without Third Variable - Javascript Interview #dsa #interview #coding
https://youtube.com/shorts/YB7Q41-vl7o?feature=share
https://youtube.com/shorts/YB7Q41-vl7o?feature=share
YouTube
Swap Numbers Without Third Variable - Javascript Interview #dsa #interview #coding
Swap two numbers without using a third variable in JavaScript.In this short video, you will learn how to swap values using simple arithmetic operations.Topic...
β€1
DSA #34 - Core Data Structures | Detect Loop in Linked List | Floydβs Algorithm
https://youtu.be/5SDWcDIj60E
https://youtu.be/5SDWcDIj60E
YouTube
DSA #34 - Core Data Structures | Detect Loop in Linked List | Floydβs Algorithm
DSA Phase-3 Core Data Structures tutorial focusing on detecting a loop in a Linked List.
In this video you will learn what a loop in a linked list is and how to detect it using Floydβs Cycle Detection Algorithm (Tortoise and Hare).
We will walk through aβ¦
In this video you will learn what a loop in a linked list is and how to detect it using Floydβs Cycle Detection Algorithm (Tortoise and Hare).
We will walk through aβ¦
π1
*π MERN Stack Architecture (End-to-End Flow)*
Now you connect everything you learned into one complete system.
π MERN = MongoDB + Express + React + Node.js
This is the most popular full stack architecture.
*π§ What is MERN Stack*
A full stack system where:
- React β Frontend (UI)
- Node + Express β Backend (API)
- MongoDB β Database
All using JavaScript π₯
*π Complete MERN Flow (Very Important)*
1οΈβ£ User interacts with UI (React)
2οΈβ£ React sends API request
3οΈβ£ Express receives request
4οΈβ£ Backend processes logic
5οΈβ£ Mongoose interacts with MongoDB
6οΈβ£ Database returns data
7οΈβ£ Backend sends JSON response
8οΈβ£ React updates UI
π This is the core interview explanation.
*π§© Architecture Diagram (Simple)*
React (Frontend)
β
API Request (fetch/axios)
β
Node + Express (Backend)
β
Mongoose
β MongoDB (Database) β
JSON Response
β
React UI Updates
*π Real MERN Project Structure*
project/
βββ client/ (React App)
β βββ src/
β βββ components/
β βββ pages/
β βββ App.js
β βββ server/ (Backend)
β βββ models/
β βββ routes/
β βββ controllers/
β βββ server.js
β βββ package.json
*π¦ Frontend Responsibilities (React)*
- UI rendering
- API calls
- State management
- Form handling
Example: fetch("/api/users")
*βοΈ Backend Responsibilities (Node + Express)*
- API creation
- Business logic
- Authentication
- Database interaction
Example: app.get("/users", ...)
*ποΈ Database Responsibilities (MongoDB)*
- Store data
- Retrieve data
- Update/Delete data
Example: User.find()
*π Where Authentication Fits*
Flow: React β Login β Backend
Backend β Verify β Generate JWT
Frontend stores token
Frontend sends token in future requests
*β οΈ Common Beginner Mistakes*
- Mixing frontend and backend code
- Not handling errors
- No folder structure
- Not using environment variables
*π§ͺ Mini Practice Task*
Design a MERN app:
π Features to build:
- User signup/login
- Add products
- View products
- Delete products
π Think:
- What goes in frontend?
- What goes in backend?
- What goes in database?
*π§ͺ Mini Task Solution: Try it yourself first*
*π§© 1. FRONTEND (React) β What goes here?*
π Responsibility: UI + API calls + state
π Structure
client/src/
βββ pages/
β βββ Login.js
β βββ Signup.js
β βββ Dashboard.js
βββ components/
β βββ ProductForm.js
β βββ ProductList.js
βββ services/
β βββ api.js
βοΈ What it does:
- Login/Signup forms
- Store JWT (localStorage)
- Call APIs
- Display products
π§ Example API Calls:
// Login
fetch("/api/auth/login", {
method: "POST",
body: JSON.stringify({ email, password }),
});
// Get Products
fetch("/api/products", {
headers: {
Authorization:
});
*βοΈ 2. BACKEND (Node + Express) β What goes here?*
π Responsibility: Logic + API + Auth
π Structure
server/
βββ models/
β βββ User.js
β βββ Product.js
βββ controllers/
β βββ authController.js
β βββ productController.js
βββ routes/
β βββ authRoutes.js
β βββ productRoutes.js
βββ middleware/
β βββ authMiddleware.js
βββ server.js
*π APIs Youβll Build*
π Auth APIs
POST /api/auth/signup
POST /api/auth/login
π¦ Product APIs
GET /api/products
POST /api/products
DELETE /api/products/:id
*π§ Example Controller Logic*
// Get Products
exports.getProducts = async (req, res) => {
const products = await Product.find({ user: req.user.id });
res.json(products);
};
*π Authentication Flow*
1. User logs in
2. Backend verifies user
3. Backend sends JWT
4. React stores token
5. Token sent in headers for protected routes
Authorization: Bearer <token>
*ποΈ 3. DATABASE (MongoDB) β What goes here?*
π Responsibility: Store & manage data
*π€ User Schema*
{
name: String,
email: String,
password: String
}
*π¦ Product Schema*
{
name: String,
price: Number,
user: ObjectId // reference to user
}
*π Complete Flow (End-to-End)*
π Example: User adds a product
1. React form submit
2. API call β POST /api/products
3. Express route receives request
4. Auth middleware verifies JWT
5. Controller saves product in MongoDB
6. Response sent back
7. React updates UI
*π Interview Tip:*
Now you connect everything you learned into one complete system.
π MERN = MongoDB + Express + React + Node.js
This is the most popular full stack architecture.
*π§ What is MERN Stack*
A full stack system where:
- React β Frontend (UI)
- Node + Express β Backend (API)
- MongoDB β Database
All using JavaScript π₯
*π Complete MERN Flow (Very Important)*
1οΈβ£ User interacts with UI (React)
2οΈβ£ React sends API request
3οΈβ£ Express receives request
4οΈβ£ Backend processes logic
5οΈβ£ Mongoose interacts with MongoDB
6οΈβ£ Database returns data
7οΈβ£ Backend sends JSON response
8οΈβ£ React updates UI
π This is the core interview explanation.
*π§© Architecture Diagram (Simple)*
React (Frontend)
β
API Request (fetch/axios)
β
Node + Express (Backend)
β
Mongoose
β MongoDB (Database) β
JSON Response
β
React UI Updates
*π Real MERN Project Structure*
project/
βββ client/ (React App)
β βββ src/
β βββ components/
β βββ pages/
β βββ App.js
β βββ server/ (Backend)
β βββ models/
β βββ routes/
β βββ controllers/
β βββ server.js
β βββ package.json
*π¦ Frontend Responsibilities (React)*
- UI rendering
- API calls
- State management
- Form handling
Example: fetch("/api/users")
*βοΈ Backend Responsibilities (Node + Express)*
- API creation
- Business logic
- Authentication
- Database interaction
Example: app.get("/users", ...)
*ποΈ Database Responsibilities (MongoDB)*
- Store data
- Retrieve data
- Update/Delete data
Example: User.find()
*π Where Authentication Fits*
Flow: React β Login β Backend
Backend β Verify β Generate JWT
Frontend stores token
Frontend sends token in future requests
*β οΈ Common Beginner Mistakes*
- Mixing frontend and backend code
- Not handling errors
- No folder structure
- Not using environment variables
*π§ͺ Mini Practice Task*
Design a MERN app:
π Features to build:
- User signup/login
- Add products
- View products
- Delete products
π Think:
- What goes in frontend?
- What goes in backend?
- What goes in database?
*π§ͺ Mini Task Solution: Try it yourself first*
*π§© 1. FRONTEND (React) β What goes here?*
π Responsibility: UI + API calls + state
π Structure
client/src/
βββ pages/
β βββ Login.js
β βββ Signup.js
β βββ Dashboard.js
βββ components/
β βββ ProductForm.js
β βββ ProductList.js
βββ services/
β βββ api.js
βοΈ What it does:
- Login/Signup forms
- Store JWT (localStorage)
- Call APIs
- Display products
π§ Example API Calls:
// Login
fetch("/api/auth/login", {
method: "POST",
body: JSON.stringify({ email, password }),
});
// Get Products
fetch("/api/products", {
headers: {
Authorization:
Bearer ${token}
}});
*βοΈ 2. BACKEND (Node + Express) β What goes here?*
π Responsibility: Logic + API + Auth
π Structure
server/
βββ models/
β βββ User.js
β βββ Product.js
βββ controllers/
β βββ authController.js
β βββ productController.js
βββ routes/
β βββ authRoutes.js
β βββ productRoutes.js
βββ middleware/
β βββ authMiddleware.js
βββ server.js
*π APIs Youβll Build*
π Auth APIs
POST /api/auth/signup
POST /api/auth/login
π¦ Product APIs
GET /api/products
POST /api/products
DELETE /api/products/:id
*π§ Example Controller Logic*
// Get Products
exports.getProducts = async (req, res) => {
const products = await Product.find({ user: req.user.id });
res.json(products);
};
*π Authentication Flow*
1. User logs in
2. Backend verifies user
3. Backend sends JWT
4. React stores token
5. Token sent in headers for protected routes
Authorization: Bearer <token>
*ποΈ 3. DATABASE (MongoDB) β What goes here?*
π Responsibility: Store & manage data
*π€ User Schema*
{
name: String,
email: String,
password: String
}
*π¦ Product Schema*
{
name: String,
price: Number,
user: ObjectId // reference to user
}
*π Complete Flow (End-to-End)*
π Example: User adds a product
1. React form submit
2. API call β POST /api/products
3. Express route receives request
4. Auth middleware verifies JWT
5. Controller saves product in MongoDB
6. Response sent back
7. React updates UI
*π Interview Tip:*
π If interviewer asks βExplain MERN flowβ
You can say:
βIn a MERN app, the React frontend sends API requests to a Node/Express backend. The backend processes business logic and interacts with MongoDB using Mongoose. Data is returned as JSON, and React updates the UI. Authentication is handled using JWT, which is stored on the client and sent with each protected request.β
*β οΈ Important Things to Mention (Bonus Points)*
- Use .env for secrets (JWT, DB URI)
- Use middleware for authentication
- Keep controllers clean (separation of concerns)
- Handle errors properly (try-catch)
*π§ Quick Mental Map*
π Always think like this:
UI β API β Logic β DB β Response β UI
*β‘οΈ Double Tap β€οΈ For More*
You can say:
βIn a MERN app, the React frontend sends API requests to a Node/Express backend. The backend processes business logic and interacts with MongoDB using Mongoose. Data is returned as JSON, and React updates the UI. Authentication is handled using JWT, which is stored on the client and sent with each protected request.β
*β οΈ Important Things to Mention (Bonus Points)*
- Use .env for secrets (JWT, DB URI)
- Use middleware for authentication
- Keep controllers clean (separation of concerns)
- Handle errors properly (try-catch)
*π§ Quick Mental Map*
π Always think like this:
UI β API β Logic β DB β Response β UI
*β‘οΈ Double Tap β€οΈ For More*
β€2
DSA #35 - Core Data Structures | Linked List Interview Problems | Top 5 Questions
https://youtu.be/ktYsuZnpcLw
https://youtu.be/ktYsuZnpcLw
YouTube
DSA #35 - Core Data Structures | Linked List Interview Problems | Top 5 Questions
DSA Phase-3 Core Data Structures tutorial focusing on Linked List interview problems.
In this video you will cover the top 4 most important linked list problems asked in coding interviews and understand the patterns behind them.
We will discuss problem-solvingβ¦
In this video you will cover the top 4 most important linked list problems asked in coding interviews and understand the patterns behind them.
We will discuss problem-solvingβ¦
β€1
NextJS Tutorial #37 - Mongoose Schema & Model
https://youtu.be/Od2fncTmoJM
https://youtu.be/Od2fncTmoJM
YouTube
NextJS Tutorial #37 - Mongoose Schema & Model
In this video, we learn how to define schemas and models using Mongoose in a Next.js application.
You will understand what a schema is, how it defines the structure of documents in MongoDB, and how to create a model using the schema. We also cover basicβ¦
You will understand what a schema is, how it defines the structure of documents in MongoDB, and how to create a model using the schema. We also cover basicβ¦
β€1
Count Words in Sentence - Javascript Interview #dsa #interview #coding
https://youtube.com/shorts/YHtXmW1ejSQ?feature=share
https://youtube.com/shorts/YHtXmW1ejSQ?feature=share
YouTube
Count Words in Sentence - Javascript Interview #dsa #interview #coding
Count the number of words in a sentence using JavaScript.In this short video, you will learn a simple logic to count words by detecting spaces in a sentence....
β€1
DSA #36 - Core Data Structures | HashMap Basics Explained | Key Value
https://youtu.be/aVxXSt90TE4
https://youtu.be/aVxXSt90TE4
π1
NextJS Tutorial #38 - Create User with Mongoose in Next.js
https://youtu.be/w7XmmpKWPKI
https://youtu.be/w7XmmpKWPKI
YouTube
NextJS Tutorial #38 - Create User with Mongoose in Next.js
In this video, we build a full-stack Create User feature using Next.js and Mongoose.
You will create a POST API route, insert data into MongoDB using Model.create(), and build a simple frontend form to collect user data. The form sends data using a fetch()β¦
You will create a POST API route, insert data into MongoDB using Model.create(), and build a simple frontend form to collect user data. The form sends data using a fetch()β¦
π1
π΄ Going LIVE at 9:00 PM IST (22nd Mar 2026) for Q&A!
Career and interview doubts β weβll cover everything.
Join the live session, drop your questions, and get real guidance π
https://www.youtube.com/live/QOvEWUpzGCo?si=-pYehzKB3snhI7pz
Career and interview doubts β weβll cover everything.
Join the live session, drop your questions, and get real guidance π
https://www.youtube.com/live/QOvEWUpzGCo?si=-pYehzKB3snhI7pz
YouTube
π΄ LIVE Q&A | Roadmap, Projects & Jobs - Frontend and Backend
Join me LIVE for an interactive Q&A session where Iβll answer your questions on React, JavaScript, MERN , MEAN stack, Python, Django projects, interviews, and career guidance.
Bring your doubts, roadmap questions, and project issues.
Letβs learn and growβ¦
Bring your doubts, roadmap questions, and project issues.
Letβs learn and growβ¦
π1