C1 Min Read LetuscrackonJune 9, 2024 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 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 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 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…
C1 Min Read LetuscrackonJune 9, 2024 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 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 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:…
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 Python2 Min Read LetuscrackonJune 8, 2024 Integers Sum – Split, Sort and Merge The program must accept N integers as the input, where each integer contains a pipe symbol. The program must find the sum of the…
Python1 Min Read LetuscrackonJune 8, 2024 Words to Digits – Integers Sum The program must accept N integers as the input, but certain digits in some integers are denoted in words (in lower case). The…