C1 Min Read LetuscrackonJune 12, 2024 C – Find the sum of the largest and smallest number in an Array. N numbers are passed as input to the program. The program must find the sum of the largest and smallest number in the Array. Input Format:The…
C1 Min Read LetuscrackonJune 12, 2024 C – Find the sum of odd digits in a given number. A number N is passed as input to the program. The program must find the sum of all odd digits present in the program and print the sum as the…
C Dynamic Programming Java Python TCS CodeVita5 Min Read LetuscrackonJune 12, 2024 Dice Game – TCS CodeVita Tanu and Shree are friends. They love playing dice games. They also like to experiment and invent new things. They have invented a mechanism…
C Java Python TCS CodeVita3 Min Read LetuscrackonJune 12, 2024 Class Arrangement – TCS CodeVita A teacher in a class with N students has noticed that some students have formed their own groups and hence prevented intermingling of…
How To Python1 Min Read LetuscrackonJune 12, 2024 Python Variables – Multiple Assignment For Variables Python allows us to assign values for more than one variable in a single line. The variables can be separated using commas. The one-liners for…
C Java Python2 Min Read LetuscrackonJune 12, 2024 Digital Sum – Compress Integer The program must accept an integer N as the input. The program must compress the integer N by concatenating the digital sum of every two…
How To Python1 Min Read LetuscrackonJune 12, 2024 Python Variables – Swapping Two Variables Swapping is the process of exchanging the values of two variables with each other. This can be useful in many operations in computer science.…
Cognizant1 Min Read LetuscrackonJune 12, 2024 Function printKrepeatingChar – CTS PATTERN You are required to complete the given function. You can click on Run anytime to check the compilation/execution status of the program. You…
C1 Min Read LetuscrackonJune 12, 2024 Pattern Printing – 005 Given an integer N as the input, the program must print 2N lines pattern output as described in the Example Input/Output given below. Input…
C1 Min Read LetuscrackonJune 12, 2024 Reverse String – Vowels Retain Same Position Given a string S1 as the input, the program must reverse the string, keeping the vowels in the same position. Input Format:The first line…