ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

Count Binary Substrings | Simple Intuition | Dry Run | Leetcode 696 | codestorywithMIK

Автор: codestorywithMIK

Загружено: 2026-02-18

Просмотров: 9469

Описание: Whatsapp Community Link : https://www.whatsapp.com/channel/0029...

Hi Everyone, this is the 139th video of our Playlist "Leetcode Easy : Popular Interview Problems".
Now we will be solving a simple string related problem - Count Binary Substrings | Simple Intuition | Dry Run | Leetcode 696 | codestorywithMIK

Problem Name : Count Binary Substrings | Simple Intuition | Dry Run | Leetcode 696 | codestorywithMIK
Company Tags : Helix
My solutions on Github(C++ & JAVA) - https://github.com/MAZHARMIK/Intervie...
Leetcode Link : https://leetcode.com/problems/count-b...


My DP Concepts Playlist :    • Roadmap for DP | How to Start DP ? | Topic...  
My Graph Concepts Playlist :    • Graph Concepts & Qns - 1 : Graph will no m...  
My Segment Tree Concepts Playlist :    • Segment Tree | Introduction | Basics | Bui...  
My Recursion Concepts Playlist :    • Introduction | Recursion Concepts And Ques...  
Trie Playlist -    • Word Search II | Leetcode 212 | Detailed |...  
Difference Array Technique: Concepts & Qns :    • Introduction | What | How | Difference Arr...  
My Line Sweep Technique Playlist :    • Introduction | What | Why | Line Sweep Tec...  
My GitHub Repo for interview preparation : https://github.com/MAZHARMIK/Intervie...
Instagram :   / codestorywithmik  
Facebook :   / 100090524295846  
Twitter :   / cswithmik  
Subscribe to my channel :    / @codestorywithmik  

╔═╦╗╔╦╗╔═╦═╦╦╦╦╗╔═╗
║╚╣║║║╚╣╚╣╔╣╔╣║╚╣═╣
╠╗║╚╝║║╠╗║╚╣║║║║║═╣
╚═╩══╩═╩═╩═╩╝╚╩═╩═╝


Video Summary :
The key idea is to group consecutive same characters and track their lengths instead of checking every possible substring.
Each valid binary substring must have equal consecutive 0s and 1s, so what really matters is the size of the current group and the previous group.
Whenever the character changes, we add min(prevGroupSize, currGroupSize) because that’s the number of balanced substrings we can form between those two adjacent groups.
So instead of brute force, we just scan once, count group sizes, and compare neighbors. Clean, linear, and very efficient.


✨ Timelines✨
00:00 - Introduction
00:09 - Motivation
00:34 - Problem Explanation
02:43 - Thought Process and Intuition
07:27 - Complete Dry Run
11:20 - Coding it up

#MIK #mik #Mik
#coding #helpajobseeker #easyrecipes #leetcode #leetcodequestionandanswers #leetcodesolution #leetcodedailychallenge #leetcodequestions #leetcodechallenge #hindi #india #coding #helpajobseeker #easyrecipes #leetcode #leetcodequestionandanswers #leetcodesolution #leetcodedailychallenge #leetcodequestions #leetcodechallenge #hindi #india #hindiexplanation #hindiexplained #easyexplaination #interview#interviewtips #interviewpreparation #interview_ds_algo #hinglish #github #design #data #google #video #instagram #facebook #leetcode #computerscience #leetcodesolutions #leetcodequestionandanswers #code #learning #dsalgo #dsa #coding #programming #100daysofcode #developers #techjobs #datastructures #algorithms #webdevelopment #softwareengineering #computerscience #pythoncoding #codinglife #coderlife #javascript #datascience #leetcode #leetcodesolutions #leetcodedailychallenge #codinginterview #interviewprep #technicalinterview #interviewtips #interviewquestions #codingchallenges #interviewready #dsa #hindi #india #hindicoding #hindiprogramming #hindiexplanation #hindidevelopers #hinditech #hindilearning #helpajobseeker #jobseekers #jobsearchtips #careergoals #careerdevelopment #jobhunt #jobinterview #github #designthinking #learningtogether #growthmindset #digitalcontent #techcontent #socialmediagrowth #contentcreation #instagramreels #videomarketing #codestorywithmik #codestorywithmick #codestorywithmikc #codestorywitmik #codestorywthmik #codstorywithmik #codestorywihmik #codestorywithmiik #codeistorywithmik #codestorywithmk #codestorywitmick #codestorymik #codestorwithmik

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
Count Binary Substrings | Simple Intuition | Dry Run | Leetcode 696 | codestorywithMIK

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

Special Binary String | Detailed Intuition | Dry Run | Leetcode 761 | codestorywithMIK

Special Binary String | Detailed Intuition | Dry Run | Leetcode 761 | codestorywithMIK

Concatenation of Consecutive Binary Numbers | Two Approaches | Dry Run | Leetcode 1680 | MIK

Concatenation of Consecutive Binary Numbers | Two Approaches | Dry Run | Leetcode 1680 | MIK

Range Update Query | Lazy Propagation | Segment Tree Concepts & Qns | Video 7 | codestorywithMIK

Range Update Query | Lazy Propagation | Segment Tree Concepts & Qns | Video 7 | codestorywithMIK

Minimum Operations to Equalize Binary String | Brute Force | Optimal | Intuition | Leetcode 3666

Minimum Operations to Equalize Binary String | Brute Force | Optimal | Intuition | Leetcode 3666

LeetCode 761 | Special Binary String 🔥 | Hard Problem Explained | O(N²) Recursion Trick

LeetCode 761 | Special Binary String 🔥 | Hard Problem Explained | O(N²) Recursion Trick

RECURSION : Popular Interview Problems (Explanation + Intuition Building)

RECURSION : Popular Interview Problems (Explanation + Intuition Building)

Leetcode EASY

Leetcode EASY

Срочный ввод чрезвычайного положения / Американские войска атакованы

Срочный ввод чрезвычайного положения / Американские войска атакованы

Find the Difference | 3 Approaches | Phone Interview | AMAZON | Leetcode - 389

Find the Difference | 3 Approaches | Phone Interview | AMAZON | Leetcode - 389

Subarray Sum Equals K | Brute-Better-Optimal approach

Subarray Sum Equals K | Brute-Better-Optimal approach

30 Brilliant Moves IN A ROW

30 Brilliant Moves IN A ROW

Решите любую задачу с шаблонами с помощью этого трюка!

Решите любую задачу с шаблонами с помощью этого трюка!

Subarray Sum Equals K (LeetCode 560) | Interview Essential | Prefix Sum

Subarray Sum Equals K (LeetCode 560) | Interview Essential | Prefix Sum

Recursion - Permutations (Theory + Code + Tips)

Recursion - Permutations (Theory + Code + Tips)

Binary Watch | Simple Clean Approach | Leetcode 401 | codestorywithMIK

Binary Watch | Simple Clean Approach | Leetcode 401 | codestorywithMIK

Сможет ли Виши победить своего СОБСТВЕННОГО бота?

Сможет ли Виши победить своего СОБСТВЕННОГО бота?

Impossible Batting Challenge

Impossible Batting Challenge

Binary Gap | Two Simple Approaches | Leetcode 868 | codestorywithMIK

Binary Gap | Two Simple Approaches | Leetcode 868 | codestorywithMIK

Make Sum Divisible by P | Simplest Explanation | Full Dry Run | Leetcode 1590 | codestorywithMIK

Make Sum Divisible by P | Simplest Explanation | Full Dry Run | Leetcode 1590 | codestorywithMIK

BS-18. Allocate Books or Book Allocation | Hard Binary Search

BS-18. Allocate Books or Book Allocation | Hard Binary Search

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]