TEACHMINT Hiring Challenge | Interview On-Campus OA Question (2023)
Question · Posted Jun 2026
Problem: Redistribute Characters to Make All Strings Equal Given an array of strings words, determine whether it is possible to redistribute characters among the strings so that all strings become exactly equal. Characters can be moved freely between strings. Return true if possible, otherwise false. Example Input words = ["abc","aabc","bc"] Output true Explanation Character frequencies: a → 2 b → 2 c → 2 There are 3 strings. Each character count can be evenly distributed: a → 2 % 3 ...
The full answer & interview discussion are available to premium members.
Log in Create a free account