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…
Python LetuscrackonApril 24, 2026 Smallest Substring – All Distinct Letters A string value S containing only alphabets (both lower and upper case) is passed as input to the program. The program must print the size of…
C LetuscrackonApril 24, 2026 Exact Capacity Booking Fed up of overbooking in airlines industry, the government has ordered that airlines cannot book more than the capacity C of an aeroplane. To…
Python LetuscrackonApril 23, 2026 String – Vowels Position Sum Accept a String S as the input. The program must print the sum of the positions of the vowels in S. If the string does not contain…