C2 Min Read LetuscrackonJune 11, 2024 Max Equal Sum of Cube Numbers in N Stacks There are several cubes placed in N stacks. Each cube has a number K (where K is from 1 to 99) printed on all the sides. Each of these N…
Python1 Min Read LetuscrackonJune 11, 2024 Sum of Last X Digits Given two integers N and X as input, the program must print the sum of last X digits in the given integer N. Boundary Condition(s):1 <= N…
C2 Min Read LetuscrackonJune 11, 2024 Maximum Sum in Array – M out of N Given N positive integers, find the maximum sum S that can be obtained by adding exactly M out of the N integers. The program must print the…
Python1 Min Read LetuscrackonJune 11, 2024 Sum divisible by D Two numbers A and B are passed as input. The program must print yes if the sum of these two numbers A and B is divisible by a third number D.…
Python1 Min Read LetuscrackonJune 10, 2024 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 LetuscrackonJune 10, 2024 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 LetuscrackonJune 10, 2024 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 LetuscrackonJune 10, 2024 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…
LetuscrackonJune 10, 2024 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 LetuscrackonJune 10, 2024 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…