1358. Count Substrings Containing All Three Characters Using Two Pointers 🚀
Learn how to efficiently count substrings that include all three characters with the two pointers technique. Perfect for mastering sliding window problems and boosting your coding skills!

Aryan Mittal
1.6K views • Mar 11, 2025

About this video
Article - https://codewitharyan.com/tech-blogs
Two Pointer Crash Course - https://www.youtube.com/watch?v=ZZ5bOSRxAqM&t=836s
Elder Brother of this Problem - https://www.youtube.com/watch?v=NyUO31qeaok
Structured DSA (Basics to Advanced) Practice - https://codewitharyan.com/cwa-sheet/practice-problems
My Uber Interview Experience - https://youtu.be/VGYJIX5yl74
My Coinbase Interview Experience - https://youtu.be/IjOC18b_dCw
My American Express Inteview Experience - https://youtu.be/c3UhYefhnqk
My JP Morgan & Chase Interview Experience - https://youtu.be/-jacTpY57no
My Intuit Experience - https://www.youtube.com/watch?v=qCWZWSdIHio
..... more coming soon (along with LLD course on Second Channel)
Most Frequently asked questions based on Leetcode Premium - https://codewitharyan.com/cwa-sheet/aryan-dsa-master-sheet
LLD Syllabus which we gonna cover - https://codewitharyan.com/system-design/low-level-design
CODE - https://leetcode.com/problems/number-of-substrings-containing-all-three-characters/submissions/1569713733/?envType=daily-question&envId=2025-03-11
Let's Connect:
2nd Channel for System Design & Live Streams - https://www.youtube.com/@codeWithAryanBhai
X Twitter : https://x.com/aryan_mittal007
📱Discord (Join Community) : https://discord.gg/vwUAz2pEHZ
📝Linkedin (About me): https://www.linkedin.com/in/aryan-mittal-0077
📸 Instagram: https://www.instagram.com/codewitharyanbhai
📱Telegram : https://t.me/aryan_mittal_group
🤖 Github: https://github.com/aryan-0077
✨ Timelines✨
0:00 - Problem Explanation
0:49 - Sliding Window Approach
2:36 - Why Not Sliding Window
3:54 - Two Pointer Dry Run & Explanation
7:17 - Code Explanation
✨ Hashtags ✨
#programming #Interviews #leetcode #faang #maang #datastructures #algorithms
Two Pointer Crash Course - https://www.youtube.com/watch?v=ZZ5bOSRxAqM&t=836s
Elder Brother of this Problem - https://www.youtube.com/watch?v=NyUO31qeaok
Structured DSA (Basics to Advanced) Practice - https://codewitharyan.com/cwa-sheet/practice-problems
My Uber Interview Experience - https://youtu.be/VGYJIX5yl74
My Coinbase Interview Experience - https://youtu.be/IjOC18b_dCw
My American Express Inteview Experience - https://youtu.be/c3UhYefhnqk
My JP Morgan & Chase Interview Experience - https://youtu.be/-jacTpY57no
My Intuit Experience - https://www.youtube.com/watch?v=qCWZWSdIHio
..... more coming soon (along with LLD course on Second Channel)
Most Frequently asked questions based on Leetcode Premium - https://codewitharyan.com/cwa-sheet/aryan-dsa-master-sheet
LLD Syllabus which we gonna cover - https://codewitharyan.com/system-design/low-level-design
CODE - https://leetcode.com/problems/number-of-substrings-containing-all-three-characters/submissions/1569713733/?envType=daily-question&envId=2025-03-11
Let's Connect:
2nd Channel for System Design & Live Streams - https://www.youtube.com/@codeWithAryanBhai
X Twitter : https://x.com/aryan_mittal007
📱Discord (Join Community) : https://discord.gg/vwUAz2pEHZ
📝Linkedin (About me): https://www.linkedin.com/in/aryan-mittal-0077
📸 Instagram: https://www.instagram.com/codewitharyanbhai
📱Telegram : https://t.me/aryan_mittal_group
🤖 Github: https://github.com/aryan-0077
✨ Timelines✨
0:00 - Problem Explanation
0:49 - Sliding Window Approach
2:36 - Why Not Sliding Window
3:54 - Two Pointer Dry Run & Explanation
7:17 - Code Explanation
✨ Hashtags ✨
#programming #Interviews #leetcode #faang #maang #datastructures #algorithms
Tags and Topics
Browse our collection to discover more content in these categories.
Video Information
Views
1.6K
Likes
60
Duration
9:20
Published
Mar 11, 2025
User Reviews
4.5
(1) Related Trending Topics
LIVE TRENDSRelated trending topics. Click any trend to explore more videos.
Trending Now