Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

Transpose of M2 in M1 Proceed to Solve the Program The program must accept two character matrices M1 and M2 as the input. The size

Transpose of M2 in M1 Proceed to Solve the Program The program must accept two character matrices M1 and M2 as the input. The size of the matrix M1 is R*C and the size of the matrix M2 is K+K. The program must print M2 if the transpose of M2 is present in M1. Else the program must print -1 as the output. Boundary Condition(s): 2<=R,C<=50 2 <= K <= Minimum value between R and C Input Format: The first line contains R and C separated by a space. The next R lines, each contains C characters separated by a space The (R+2)th line contains K. The next K lines, each contains K characters separated by a space Output Format

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions