C1 Min Read LetuscrackonJune 9, 2024 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 LetuscrackonJune 9, 2024 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 LetuscrackonJune 8, 2024 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 LetuscrackonJune 8, 2024 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:…
C Java Python3 Min Read LetuscrackonJune 8, 2024 Matrix Layers – Fill from each Corner The program must accept five integers A, B, C, D and N as the input. The value of N is always even.…
C Java Python2 Min Read LetuscrackonJune 8, 2024 Reduce Matrix – Powers of Two The program must accept a matrix of size N*N containing only digits as the input. The value of N is always a power of two. The…
C1 Min Read LetuscrackonJune 8, 2024 Flip Count – Matrix The program must accept a matrix of size NxN as the input. The matrix contains only 0’s and 1’s. The program must transpose the…
Python2 Min Read LetuscrackonJune 8, 2024 Swap Integers Matrix Border The program must accept an integer matrix of size R*C and two integers X, Y as the input. The program must find the Xth integer and the Yth in…
C1 Min Read LetuscrackonJune 8, 2024 Matrix – Upper Left to Lower Right The program must accept the upper left triangle elements of an integer matrix size of NxN as the input. The program must fill the lower right…
Python1 Min Read LetuscrackonJune 7, 2024 Sort Matrix & Print Positions Sort Matrix & Print PositionsThe program must accept an integer matrix of size R*C containing only unique integers as the input.…