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…
Java LetuscrackonApril 23, 2026 RAT CHEESE MAZE Moozak the mouse has been placed in the top left corner of a maze. There is a huge chunk of cheese somewhere in the maze which is represented…
Python LetuscrackonApril 22, 2026 Reverse X to Y Position Characters A string S and two integers X and Y are passed as input. The program must print the characters in the string S from position X to position Y…
Python LetuscrackonApril 22, 2026 Multiply N with Unit Digit The program must accept a positive integer N and print the value of N multiplied with it’s unit digit. Boundary Condition(s):1 <= N…
C LetuscrackonApril 21, 2026 Traverse Square Matrix – Spiral Clockwise A square matrix of size N*N is provided. The program must traverse the matrix spirally and print the elements in a single line. Input…