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…
Python1 Min Read LetuscrackonNovember 26, 2025 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 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…
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:…
C1 Min Read LetuscrackonSeptember 13, 2025 Sum of Unique Elements in the Array The program must accept a positive integer array of size N as the input. The programmust print the sum of unique elements in the array as the…
Java Python1 Min Read LetuscrackonMarch 25, 2025 Peak Elements Count Peak Elements Count: N integers are passed as input. The program must print the count of peak elements among the N integers. An element is a…
Python1 Min Read LetuscrackonMarch 4, 2025 Both Adjacent Elements – Odd or Even Both Adjacent Elements – Odd or Even: Given an array of N positive integers, print the positive integers that have both the adjacent…
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…