Python1 Min Read LetuscrackonMarch 12, 2026 Diagonal Sum A set of numbers forming a matrix N*N is passed as input. The program has to print the sum of numbers along the diagonals. Input Format: The…
Python1 Min Read LetuscrackonMarch 9, 2026 Matrix – Inside Numbers Sum A set of numbers forming a matrix N*N is passed as input. The program has to print the sum of numbers which are not along the edges. Input…
Python1 Min Read LetuscrackonMarch 7, 2026 Difference between sum of odd and even digits A number N is passed as input. The program must find the difference between sum of odd and even digits in the number and print the difference.…
Java1 Min Read LetuscrackonMarch 5, 2026 JAVA – Constructor – Sum and Product The main method in Hello.java is as shown below. Define the class Calculator.java by filling in the code so that the…
LetuscrackonFebruary 22, 2026 Finding Sum – TCS CodeVita The program must accept N integers and an integer P as the input. The program must print the number of subsets of…
Python1 Min Read LetuscrackonFebruary 12, 2026 Sum – Unit Digit 3 or 6 The program must accept N integers as the input. The program must print the sum of integers having the unit digit as 3 or 6 as the…
C1 Min Read LetuscrackonFebruary 5, 2026 Reversed Sum of Pairs An array of N integers is passed as input. The program must print the sum of every two consecutive elements in the array from last. Boundary…
C Dynamic Programming1 Min Read LetuscrackonFebruary 2, 2026 Codu and Sum Love Given N number of x‘s, perform logic equivalent of the below Java code and print the output. Boundary Condition(s):1…
C Java Python TCS CodeVita2 Min Read LetuscrackonJanuary 16, 2026 Consecutive Prime Sum – TCS CodeVita Some prime numbers can be expressed as a sum of other consecutive prime numbers. For example 5 = 2 + 3, 17 = 2 + 3 + 5 + 7, 41 = 2 + 3 + 5 + 7…
C1 Min Read LetuscrackonJanuary 14, 2026 Matrix Maximum Column Sum An integer matrix of size N*N is given as input. The program must print the maximum column-wise sum of the matrix. Boundary Condition(s):1…