C1 Min Read LetuscrackonJanuary 12, 2026 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 LetuscrackonJanuary 5, 2026 Sum of Dice Values Pairs of integers are passed as the input to the program. The integers in each pair represent values of two dice in a game. If both the values…
C1 Min Read LetuscrackonDecember 23, 2025 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…
C1 Min Read LetuscrackonDecember 21, 2025 Minimum Sum – M out of N Given N positive integers, find the minimum sum S that can be obtained by adding exactly M out of the N integers. The program must print the…
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 3, 2025 Array Element Adjacent Sum Given an Array of length N, the program must print the sum of adjacent numbers of elements present in the array.Input Format:First line…
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 19, 2025 Integer – Sum of Digits The program must accept an integer value N as a command line argument and print the sum of the digits in N.Example Input/Output…
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 24, 2025 Position Digits Sum The program must accept two positive integers as the input and then print the sum of their unit digits, tenth digits and so on. Input Format:…