Matrix

CF

Matrix Diagonals Sum

You are given a square matrix of size N*N.Calculate the sum of integers present in the two main diagonals Example 1: Input:35 10 1179 6 129 21…
CF

Word Search in Matrix

The program must accept a character matrix of size R*C and a string S as input. The program must search the string S in…
CF

2D MATRIX MODIFICATION

A Matrix has R rows and C columns. Get the matrix as input and multiply the value in the cells of the matrix by a value E if it is even and…
CF

Matrix Traverse 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…
CF

Matrix – Sum of Edge Elements

The input elements of R*C matrix is passed as the input (R is the number of rows and C is the number of columns in the matrix. The program…
PythonF

Sparse Matrix

Write an algorithm and the subsequent Python program to check whether the given matrix is sparse or not. A matrix is said to be a “Sparse” if…