Java LetuscrackonDecember 11, 2024 Maximum by Single Digit Replacement Maximum by Single Digit Replacement: Two integers M and N are passed as the input to the program. The program must print the maximum value of…
C LetuscrackonDecember 10, 2024 Decreasing String in Center – Pattern A string S is passed as the input to the program. The program must print the pattern as shown in the Example Input/Output…
C LetuscrackonDecember 10, 2024 Number of Ways to Reach Score Consider a game where a player can score 3 or 5 or 10 points in a move. The program must accept an…
Python LetuscrackonDecember 9, 2024 New Line – Repeated Characters The program must accept a string S as the input. The program must split the string S wherever a character occurs repeatedly(i.e.,…
Python TCS CodeVita LetuscrackonDecember 9, 2024 Grooving Monkeys – TCS CodeVita There are N monkeys in a circus. They dance in a circular formation, very similar to a Gujarati Garba or a Drum Circle. The dance…
C LetuscrackonDecember 8, 2024 Count the Ships Count the Ships: A sea is represented as an N*N matrix where # represents a part of a ship and – represents water. All the ships are…
Python LetuscrackonDecember 8, 2024 Triangle Count from Array Program In Python An array of N integers is passed as the input to the program. The program must print the count of triangles that can be formed with the given…
Java Python TCS CodeVita LetuscrackonDecember 7, 2024 Bottle Necks – TCS CodeVita The program must accept the radii of N bottles as the input. Once a bottle is enclosed inside another bottle, it ceases to be…
InfyTQ Python LetuscrackonDecember 7, 2024 Sum and Reverse Till Palindrome The program must accept an integer N as the input. The program must find the palindrome formed by performing the following operations.–…
Python LetuscrackonDecember 6, 2024 Sum of Matrices – Reverse Rows The program must accept two integer matrices M1 and M2 are of equal size RxC as the input. In M1 and M2, The program must reverse the integers…