← HSBC questions
CodingEasy

Minimum length after removing substrings 01 or 10

Filed under HSBC

Given a binary string containing 0s and 1s, you can repeatedly remove any occurrences of substrings '01' or '10'. Find the minimum length of the resultant string after performing such removals…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related HSBC questions

Collected from public candidate posts and coding forums. Updated Nov 2026.