C Dynamic Programming1 Min Read LetuscrackonFebruary 2, 2025 Pattern Printing for N Comma Separated Values Pattern Printing for N Comma Separated Values: The below program must print the given array of numbers in the given format for a given size N.…
Python1 Min Read LetuscrackonJanuary 28, 2025 Sum of Values Less Than or Equal to X Sum of Values Less Than or Equal to X: A set of N positive integers are passed as the input. Another number X which may or may not be present…
C Java Python2 Min Read LetuscrackonJune 12, 2024 Sort the String Values Based on Length The program must accept N string values as the input. The program must sort the string values based on the length of each string…
C1 Min Read LetuscrackonJune 12, 2024 HCF (GCD) of long values The program must accept two long values X, Y and print their HCF (GCD). Input Format:The first line contains X and Y separated by a space.…
C1 Min Read LetuscrackonJune 11, 2024 Interchange largest and smallest values Given N distinct integer values, the program must swap the position of the largest and smallest integer values. Input Format:The first line…
Python1 Min Read LetuscrackonJune 11, 2024 Odd-Even Values Difference Given a value of N positive integers, the program must print the difference between the sum of odd integers and the sum of even integers.…
Python1 Min Read LetuscrackonJune 10, 2024 Double Array Values Given N integers, the program must double the values and print them. Input Format:First line contains NSecond line contains N integers…
C1 Min Read LetuscrackonJune 10, 2024 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…
C Python1 Min Read LetuscrackonJune 8, 2024 First Five Values Divisible Three numbers A, B and C are passed as input. The program must print the first five values that are divisible by A, B and C.Input Format:The…
C1 Min Read LetuscrackonJune 8, 2024 Common Part in string values Two string values S1 and S2 are passed as input. The last portion of S1 will be the first portion of S2. The program must print this common…