Question: using Mips Assembly A palindrome is a string that reads the same backwards as forwards. For example, abcba, 1221, 55555 etc. Write an assembly program

using Mips Assembly

A palindrome is a string that reads the same backwards as forwards. For example, abcba, 1221, 55555 etc. Write an assembly program that reads a string and its size and check if it is palindrome or not.

If the input string is not a palindrome, Output a palindrome that is produced by changing the minimum possible number of characters. Changing a character means replacing it with any single character at the same position. You are not allowed to remove or add any characters.

Sample Testcase Input: ameba

Output: 1, abeba

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!