REFYNE Hiring | Off-Campus Interview Question | OA (2025)
Question · Posted Jun 2026
Problem: Minimum Number of Steps to Make Two Strings Anagram Given two strings s and t of equal length, determine the minimum number of character replacements required in t so that it becomes an anagram of s. Example Input: s = "bab" t = "aba" Output: 1 Explanation: Frequency of characters: Character s t a 1 2 b 2 1 String t is missing one 'b', so one replacement is needed.
The full answer & interview discussion are available to premium members.
Log in Create a free account