← Microsoft questions
CodingReported in a candidate post, Jan 2025

Generate Alternate Binary and Alphabet Strings

Filed under Microsoft

Given an integer `n` representing total string length and a list of allowed characters `alphabets`, recursively generate all possible strings of length `n` that alternate between a binary digit ('0'…

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 Microsoft questions

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