C2 Min Read LetuscrackonDecember 19, 2025 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…
C Java Python2 Min Read LetuscrackonDecember 12, 2025 Matrix – Same Characters The program must accept a character matrix of size NxN as the input. The program must print YES if all the characters in the diagonals (both…
C1 Min Read LetuscrackonDecember 10, 2025 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…
C1 Min Read LetuscrackonDecember 7, 2025 2D Matrix – Elements Adjacent Sum Given a matrix of R rows and C columns, for each element print the sum of the adjacent elements.Input Format:The first line contains RThe…
C Python1 Min Read LetuscrackonDecember 2, 2025 2D Matrix Absolute Difference Diagonals Elements Sum A Square Matrix has N rows and N columns. Get the matrix as input and find the absolute difference between the sum of the values in the two…
C1 Min Read LetuscrackonNovember 29, 2025 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…
C1 Min Read LetuscrackonNovember 18, 2025 Matrix Pattern Printing – First / Last Higher Given an integer N as the input, print the pattern as given in the Example Input/Output section. Input Format: The first line contains N.…
C1 Min Read LetuscrackonNovember 18, 2025 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…
Python1 Min Read LetuscrackonNovember 1, 2025 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…
C1 Min Read LetuscrackonOctober 22, 2025 Square Matrix – Corner Elements Sum A square matrix of size N*N is passed as input. The program must calculateand print the sum of the elements in the corners. Example 1:…