C Java Python1 Min Read LetuscrackonDecember 4, 2025 Reverse words Given a string S as the input Write a program to print the reverse order of the words in the string S. Input Format:The first line contains S.…
C Java1 Min Read LetuscrackonNovember 30, 2025 Leap Year A year Y will be passed as input. The program must find if the given year is a leap year or not. If it is a leap year, print yes…
C Java1 Min Read LetuscrackonNovember 28, 2025 Word slot A Square Matrix of N Rows and N Columns is passed as the input and also a String S of Length L is passed as input. The matrix has an empty…
Java Python1 Min Read LetuscrackonNovember 27, 2025 Next Prime Number A number N is passed as the input. The program must print the next immediate primenumber.Input Format:The first line will contain N.Output…
C Java Python1 Min Read LetuscrackonNovember 25, 2025 Arrange Alphabets – Descending Order A string S (with only LOWER case alphabets and length from 3 to 100) will be passed as input. The program should print the alphabets in the…
Java1 Min Read LetuscrackonNovember 20, 2025 First Repeating Character From Last A string S is passed as the input. S has at least one repeating character. The program must print the first repeating character C from the…
C Java1 Min Read LetuscrackonNovember 20, 2025 Winner of a Card Game Arun, Balaji, and Chandra are playing a card game. The points collected at the end of the game is given as input. The program must print the…
C Java Python1 Min Read LetuscrackonNovember 19, 2025 Rotate String – N Positions A string S of length L is passed as the input. The program must rotate the string S by N position in forward direction and print the result as…
Java1 Min Read LetuscrackonNovember 17, 2025 Alternate letters in uppercase A string S (only alphabets) is passed as input. The printed output should contain alphabets in odd positions in each word in uppercase and…
Java Python1 Min Read LetuscrackonNovember 17, 2025 Count the primes in a range Two whole numbers N1 and N2 are passed as input. The program must print the number of primes present between N1 and N2 (the range is inclusive…