Skip to content
Avio Lines
← Strings lineD2Stop 47 of 104

Separate Black and White Balls (LeetCode 2938)

MediumLeetCode 2938 · Two Pointers · Google, Amazon +2 · 13:23Separate Black and White Balls · 2 Simple Ways · Leetcode 2938
MIK's code LeetCode ↗ YouTube ↗

My notes

Sign in to keep private notes on every station, with video timestamps.

Try it before watching

Pause here and write your approach in two lines. Compare it with MIK's when the video ends.

Sign in to write your approach →

About this video

Video solution for LeetCode 2938 Separate Black and White Balls by codestorywithMIK: Strings, Medium. Topics: Two Pointers, String, Greedy. Watch the explanation, then check the code and solve it on LeetCode.

Difficulty
medium
Topics
Two Pointers, String, Greedy
Patterns
Two Pointers, String Building & Greedy
Chapter
Strings
Duration
13:23