The Celebrity Problem in Java šŸ”„ | Stack Interview Question | DSA in Java #54

Learn how to solve the Celebrity Problem using Stack and optimized logic in Java. This is a popular coding interview question that tests your problem-solving skills and understanding of elimination techniques. In this video, we explain the intuition, approach, and implementation step by step. šŸ”„ In this video: • Celebrity Problem Explanation • Brute Force vs Optimized Approach • Stack Based Solution • Dry Run with Example • Java Code Implementation • Time & Space Complexity šŸ“Œ Practice Problem: Celebrity Problem :- https://www.geeksforgeeks.org/problem... šŸ“š DSA in Java Full Course Playlist:    • DSAĀ inĀ JavaĀ FullĀ CourseĀ (Hindi)Ā |Ā JavaĀ DSA...Ā Ā  šŸ“‚ Code Repository: https://github.com/sumanmalakar/DSA_I... šŸ“ Notes: https://drive.google.com/drive/u/0/fo... šŸŽÆ Other Popular Playlists: Full Stack Web Development:    • FullĀ StackĀ WebĀ DevelopmentĀ CourseĀ (Hindi)Ā ...Ā Ā  Java Complete Playlist:    • JavaĀ MasteryĀ CourseĀ Ā  Latest React 19 Playlist: Ā Ā Ā ā€¢Ā šŸš€Ā ReactĀ JSĀ FullĀ CourseĀ inĀ HindiĀ (2026)Ā |Ā C...Ā Ā  šŸ“¢ Support the Channel: If our tutorials inspired you, consider donating to support free quality content: https://drive.google.com/file/d/10GBJ... TIMESTAMPS 00:00:00 | Intro 00:00:10 | Ques : Celebrity Problem 00:08:54 | Approach - Brute Force 00:10:35 | Approach - Optimized 00:15:00 | Let's write code 00:18:32 | Dry Run 00:25:08 | Time & Space Complexity...? 00:25:40 | Outro Join Our WhatsApp Channel :- https://whatsapp.com/channel/0029VabO... Mastery Courses :-    • FullĀ StackĀ WebĀ DevelopmentĀ +Ā Java/C++Ā Cour...Ā Ā  Crash Course :-    • CrashĀ CourseĀ Ā  React Animated Portfolio Website :-    • BuildĀ ReactĀ AnimatedĀ PortfolioĀ 2025Ā InĀ Hin...Ā Ā  React Shopping Cart Project :- Ā Ā Ā ā€¢Ā šŸ›’Ā ReactĀ ShoppingĀ CartĀ E-CommerceĀ WebsiteĀ i...Ā Ā  React.js Project playlist :-    • React.jsĀ ProjectsĀ (Beginner → Advanced)Ā |Ā ...Ā Ā  All React Hooks In One Shot :-    • AllĀ ReactĀ HooksĀ InĀ OneĀ VideoĀ WithĀ NotesĀ In...Ā Ā  Node.js playlist :-    • NodeĀ JSĀ &Ā ExpressĀ BackendĀ DevelopmentĀ Full...Ā Ā  MERN E - Commerce :-    • MERNĀ StackĀ E-CommerceĀ WebsiteĀ withĀ Razorpa...Ā Ā  ā–ŗMy Girlfriend :- https://amzn.to/3EvmSkD Reach Me Out ----------------------------------------------------------------------------------------------------------------------- Linkedin :- Ā Ā /Ā suman-malakarĀ Ā  Instagram :- Ā Ā /Ā suman_malakar001Ā Ā  facebook :- Ā Ā /Ā sumankumar.malakar.9Ā Ā  GitHub :- https://github.com/sumanmalakar ----------------------------------------------------------------------------------------------------------------------- Product I use for coding and YouTube ----------------------------------------------------------------------------------------------------------------------- Laptop :- https://amzn.to/4oloWRG SSD :- https://amzn.to/47NUp7c HardDisk :- https://amzn.to/3KGSaZ9 keyboard :- https://amzn.to/3YGXIJ3 Mouse :- https://amzn.to/45uSylF Headphone :- https://amzn.to/3KGSaZ9 Web Cam :- https://amzn.to/3QK978T Microphone : - https://amzn.to/3KGSaZ9 Business Email: [email protected] Personal Channel: Ā Ā Ā /Ā @sumanmalakar18Ā Ā  #stack #DSA #Java #CodingInterview #PlacementPreparation

Largest Rectangle in Histogram šŸ”„ | Stack Interview Question | DSA in Java #55
ā–¶ļøŽ

Largest Rectangle in Histogram šŸ”„ | Stack Interview Question | DSA in Java #55

Top String Interview Questions in Java You Must Prepare
ā–¶ļøŽ

Top String Interview Questions in Java You Must Prepare

Coding Interview Patterns - Sliding Window | 10 different problems in a single video
ā–¶ļøŽ

Coding Interview Patterns - Sliding Window | 10 different problems in a single video

LeetCode 494 | Target Sum | Revision | C++ & Java Solution
ā–¶ļøŽ

LeetCode 494 | Target Sum | Revision | C++ & Java Solution

Akshay Kumar CAN’T STOP LAUGHING At Sunil Grover’s Comedy 🤣 | TGIKS | Netflix India
ā–¶ļøŽ

Akshay Kumar CAN’T STOP LAUGHING At Sunil Grover’s Comedy 🤣 | TGIKS | Netflix India

Stock Span Problem in Java šŸ”„ | Stack Interview Problem | DSA in Java Full Course #53
ā–¶ļøŽ

Stock Span Problem in Java šŸ”„ | Stack Interview Problem | DSA in Java Full Course #53

How To Learn So Fast It’s Almost Unfair
ā–¶ļøŽ

How To Learn So Fast It’s Almost Unfair

Should You Learn Coding Now? Anthropic CEO Explains
ā–¶ļøŽ

Should You Learn Coding Now? Anthropic CEO Explains

Ex-Google Recruiter Explains Why "Lying" Gets You Hired
ā–¶ļøŽ

Ex-Google Recruiter Explains Why "Lying" Gets You Hired

Design Min Stack in Java šŸ”„ | LeetCode 155 | Stack Interview Problem | DSA in Java #52
ā–¶ļøŽ

Design Min Stack in Java šŸ”„ | LeetCode 155 | Stack Interview Problem | DSA in Java #52

šŸ”„ #3 How to Calculate Time Complexity of an Algorithm | Java DSA Examples
ā–¶ļøŽ

šŸ”„ #3 How to Calculate Time Complexity of an Algorithm | Java DSA Examples

LeetCode was HARD until I Learned these 15 Patterns
ā–¶ļøŽ

LeetCode was HARD until I Learned these 15 Patterns

God Says:"DON’T IGNORE THIS IMPORTANT LETTER I SENT YOU"/God Message Now/God Message
ā–¶ļøŽ

God Says:"DON’T IGNORE THIS IMPORTANT LETTER I SENT YOU"/God Message Now/God Message

2026 Relaxing Piano & Birdsong šŸ•Šļø Calm Mind, Deep Sleep, Stress Relief & Peaceful Nature Ambience
ā–¶ļøŽ

2026 Relaxing Piano & Birdsong šŸ•Šļø Calm Mind, Deep Sleep, Stress Relief & Peaceful Nature Ambience

Ų³Ų§Ų¹Ų© من Ų§Ł„Ų³ŁƒŁŠŁ†Ų© Ł…Ų¹ Ų§Ł„Ł‚Ų±Ų¢Ł†ā¤ļøšŸ˜Œ | ŲŖŁ„Ų§ŁˆŲ© هادئة Ł„Ł„Ł†ŁˆŁ… ŁˆŲ§Ł„Ų§Ų³ŲŖŲ±Ų®Ų§Ų”šŸ•ŠļøšŸŽ§ | Deep Tranquility
ā–¶ļøŽ

Ų³Ų§Ų¹Ų© من Ų§Ł„Ų³ŁƒŁŠŁ†Ų© Ł…Ų¹ Ų§Ł„Ł‚Ų±Ų¢Ł†ā¤ļøšŸ˜Œ | ŲŖŁ„Ų§ŁˆŲ© هادئة Ł„Ł„Ł†ŁˆŁ… ŁˆŲ§Ł„Ų§Ų³ŲŖŲ±Ų®Ų§Ų”šŸ•ŠļøšŸŽ§ | Deep Tranquility

What is CI/CD Pipeline? | Simply Explained by Shradha Ma'am
ā–¶ļøŽ

What is CI/CD Pipeline? | Simply Explained by Shradha Ma'am

Longest Substring Without Repeating Characters (LeetCode 3) | šŸ”„ DSA Java Placement Course
ā–¶ļøŽ

Longest Substring Without Repeating Characters (LeetCode 3) | šŸ”„ DSA Java Placement Course

American Reacts to Trumps Pool-Fiasko & Peinliche Videos von Politikern zur WM
ā–¶ļøŽ

American Reacts to Trumps Pool-Fiasko & Peinliche Videos von Politikern zur WM

God Says:"MY CHILD, I NEED TO SEE YOU URGENTLY!"/God Message Now/God Message
ā–¶ļøŽ

God Says:"MY CHILD, I NEED TO SEE YOU URGENTLY!"/God Message Now/God Message