← Flipkart questions
CodingReported in a candidate post, Jan 2020

String construction with no adjacent duplicates

Filed under Flipkart

Given counts for characters 'a', 'b', and 'c', determine if a string can be formed such that no two identical characters are adjacent. If possible, construct the valid string.

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

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