Python LetuscrackonApril 29, 2026 Sum of Prime Numbers Given an integer matrix of size M*N as input, the program must print the sum of prime numbers present in the given matrix. Boundary…
Cognizant LetuscrackonApril 29, 2026 Function printCornerElements – CTS PATTERN You are required to fix the logical error in the given code. You can click on Run button anytime to check the compilation/execution status of…
Python LetuscrackonApril 28, 2026 Sequence – Based on Previous Term The program must accept an integer N as the input. The program must generate a sequence of integers based on the following conditions. –…
Cognizant LetuscrackonApril 28, 2026 Function isPalindrome – CTS PATTERN You are required to fix all the logical errors in the given code. You can click on Run anytime to check the compilation/execution status of…
Python LetuscrackonApril 27, 2026 N Strings – Largest Unique Characters N string values are passed as input to the program. The output is the string which has the largest count of unique characters. If multiple…
Python LetuscrackonApril 27, 2026 Sort Integers in String The program must accept a string S which has only numbers and underscores as the input. The program must print only the integers…
Python LetuscrackonApril 26, 2026 Intelligent Robber There are N streets in a town and in each street there is one treasure house with certain number of gold coins – C(1) …. C(N) in…
Cognizant LetuscrackonApril 26, 2026 Function matrixTranspose – CTS PATTERN You are required to complete the given code by reusing existing functions. You can click on Run button anytime to check the…
Python LetuscrackonApril 25, 2026 N numbers divisible by X or Y Three integers X, Y and N are passed as input. The program must print the first N values from 1 which are divisible by X or Y. Boundary…
C LetuscrackonApril 25, 2026 N Integers – Sum S – All Combinations A number S is passed as input. Also N positive unique integers are passed as input to the program. One or more numbers (out of these N…