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…
Python1 Min Read LetuscrackonJune 12, 2024 Array Elements – Max Divisible by D An array of N positive integers are passed as input. D which is a positive integer is also passed as the input. The program must print the…
Python1 Min Read LetuscrackonJune 11, 2024 Product of Current and Next Elements Given an array of integers of size N as input, the program must print the product of current element and next element if the current element…
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.…
C1 Min Read LetuscrackonJune 10, 2024 Sum Of First and Last Alternate Elements Given an integer array of size N, print the sum of first and last number, second first and second last number and so on.Note:N is always…
C1 Min Read LetuscrackonJune 9, 2024 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 LetuscrackonJune 9, 2024 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…
Python1 Min Read LetuscrackonJune 9, 2024 Distinct Elements Count Two integer arrays of length L1 and L2 are passed as input. The program must print the sum of the distinct elements present in both the…
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…
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:…