C Java Python4 Min Read LetuscrackonJune 12, 2024 Find the Sum of All Elements in a Matrix You are given a matrix of size R*C containing integers. Write a program to find the sum of all elements present in the matrix. Note: Make sure…
Java1 Min Read LetuscrackonJune 11, 2024 Reverse Columns In Matrix Given a square matrix of size N, reverse column values in the matrix and print the modified matrix as the output. Boundary Condition:1<= N…
Python1 Min Read LetuscrackonJune 11, 2024 Search Hexadecimal Value – Matrix The program must accept a character matrix of size RxC containing only hexadecimal digits and an integer X as the input.…
Dynamic Programming Python1 Min Read LetuscrackonJune 11, 2024 DP – Matrix Ways from Top Left to Bottom Right The number of rows R and columns C of a matrix are passed as the input. The program must print the number of ways W to traverse from the top…
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…