Cognizant1 Min Read LetuscrackonJune 11, 2024 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…
Python1 Min Read LetuscrackonJune 11, 2024 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. –…
Cognizant1 Min Read LetuscrackonJune 11, 2024 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…
Python1 Min Read LetuscrackonJune 11, 2024 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…
Cognizant1 Min Read LetuscrackonJune 11, 2024 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…
C4 Min Read LetuscrackonJune 11, 2024 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…
Python1 Min Read LetuscrackonJune 11, 2024 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…
Python1 Min Read LetuscrackonJune 11, 2024 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…
C1 Min Read LetuscrackonJune 11, 2024 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…
Python1 Min Read LetuscrackonJune 11, 2024 Football Player – Total Dribble Paths A football coach wants his team to improve their dribbling skills. So he sets up a R * C grid, where R is the number of rows and C is the…