C1 Min Read LetuscrackonJune 11, 2024 Matrix Transpose Given a matrix of R rows and C columns as the input, the program must print the transpose of the input matrix. Input Format:The first line…
Python1 Min Read LetuscrackonJune 11, 2024 Matrix Diagonal Pattern Given an integer matrix of size N*N as input, the program must print only the diagonal elements. The remaining elements must be replaced by *…
C1 Min Read LetuscrackonJune 11, 2024 Traverse Square Matrix – Spiral Clockwise A square matrix of size N*N is provided. The program must traverse the matrix spirally and print the elements in a single line. Input…
Python1 Min Read LetuscrackonJune 11, 2024 Forward and Reverse Order of Alphabets – Matrix Pattern Accept an integer N and an alphabet A as input. The program must print the pattern as shown in the Example Input/Output section below. (Note:…
Python1 Min Read LetuscrackonJune 10, 2024 Matrix – Inside Numbers Sum A set of numbers forming a matrix N*N is passed as input. The program has to print the sum of numbers which are not along the edges. Input…
C Java Python2 Min Read LetuscrackonJune 10, 2024 Matrix Palindrome The program must accept an integer matrix of size RxC as the input. The program must print YES if every row and every…
Python2 Min Read LetuscrackonJune 10, 2024 Matrix Rotation – Anti Clock Wise A M*N matrix having M rows and N columns containing integer values is passed as the input. The matrix must be rotated R times in counter-clock…
C1 Min Read LetuscrackonJune 10, 2024 Matrix Print Excluding Border elements A matrix of size N*N is passed as input. The program must print the matrix excluding the elements present at the border of the matrix.…
C Dynamic Programming1 Min Read LetuscrackonJune 10, 2024 Largest Square Sub Matrix with 1s ExampleInput/Output 1:Input:7 51 1 1 0 11 1 0 1 00 1 1 1 11 1 1 1 11 1 1 1 11 1 1 1 10 0 0 0 0 Output:4
C1 Min Read LetuscrackonJune 10, 2024 Matrix Maximum Column Sum An integer matrix of size N*N is given as input. The program must print the maximum column-wise sum of the matrix. Boundary Condition(s):1…