Question: Write in MIPS Assembly You are given an array of strings words and a string chars. A string is good if it can be formed
Write in MIPS Assembly

You are given an array of strings words and a string chars. A string is good if it can be formed by characters from chars (each character can only be used once). Write an assembly program to output the count of all good strings in words. Sample test case 1: Input: words = ["cat", "bt", "hat", "tree"), chars = "atach" Output: 2 Explanation: The strings that can be formed are "cat" and "hat" so the answer is 2. Sample test case 2: Input: words = ["hello", "world", "honey"], chars "welldonehoneyr" Output: 10 Explanation: The strings that can be formed are "hello", "honey" and "world" so the answer is 3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
