Count Subarrays With Majority Element I, II | LeetCode 3737, 3739 | C++ | Arabic
Today's Challenge: • 3737. Count Subarrays With Majority Element I • 3739. Count Subarrays With Majority Element II In this video, we break down the intuition and approach step-by-step for both versions of the problem: "Count Subarrays With Majority Element I" and "Count Subarrays With Majority Element II". We start from the brute force and optimize our way to the optimal O(N) solution without memorizing code. Code & Written Editorial: https://github.com/HassanFouad/LeetCo... Timestamps: 0:15 Problem Description 1:13 Understanding Examples 2:29 Solution Approach 5:15 O(N^2) solution 10:40 Count Subarrays With Majority Element II Full Explanation 11:11 O(n log n) solution 21:43 O(N) solution Join Our Community WhatsApp Group for daily challenges and coding discussions: https://chat.whatsapp.com/Kuwlzu90GKq... Problem Solving Roadmap A structured guide covering essential Data Structures & Algorithms topics for practice: https://docs.google.com/spreadsheets/... Main Repository Source code for all daily challenges: https://github.com/HassanFouad/LeetCo... Connect With Me • LinkedIn: / hassan-fouad-a97b79291 • LeetCode: https://leetcode.com/u/Hassan_Fouad/ • Codeforces: https://codeforces.com/profile/Hassan... • YouTube: / @hassan_fouad If you found this helpful, please consider subscribing to follow the daily challenges.

How I would learn Leetcode if I could start over

Maximum Number of Balloons | Leetcode 1189 | C++ | Detailed Explanation | Arabic

DAY-1 🚀 || Leetcode-8 : String to Integer (atoi) || DSA Consistency

Maximum Ice Cream Bars | Leetcode 1833 | C++ | Detailed Explanation | Arabic

When an audition changed TV forever

Turing Award Winner: Disagreeing with Google, Postgres, Future Problems | Mike Stonebraker

Big-O Notation - For Coding Interviews

"Got any hobbies?"

How To Think SO CLEARLY People Assume You're A Genius

Marokko – Haiti Highlights | Gruppe C, FIFA WM 2026 | sportstudio

TV ART SLIDESHOW 24/7 | Vintage Floral Gallery 🌼4K Framed Art Screensaver for Living Room

I'm an ex-Google interviewer. You're doing LeetCode wrong.

Why Smart People Struggle To Articulate Themselves Clearly

The SpaceX Bubble Crash Is Worse Than It Looks

Harvard Professor: CS50, What Matters More Than Programming Now, Lecturing Well | David J Malan

Chip design from the bottom up – Reiner Pope

How To Become Dangerously Self-Educated (with AI)

CAD Speedmodeling Tournament! - FINALS Battle 1 - SOLIDWORKS vs SOLIDWORKS

God Says:"TAKE THIS MESSAGE SERIOUSLY, BECAUSE ONLY YOU ARE SEEING IT"/God Message Now/God Message

