Java1 Min Read LetuscrackonJune 8, 2024 Find Palindrome and its index A String is given S, we have to find the palindrome in that and print the starting and ending index. Example I/O: Example I/O: Sample Input 1:…
C Java Python2 Min Read LetuscrackonJune 8, 2024 Patients Token The program must accept the names of N patients and the time (in 24-hr format) they entered a hospital as the input. The hospital’s…
C Java Python2 Min Read LetuscrackonJune 8, 2024 Sort Pairs – Inside & Outside Parentheses The program must accept N pairs of integers as the input. One of the two integers in each pair is enclosed within a pair of…
C Java Python1 Min Read LetuscrackonJune 7, 2024 Alphabets and Sum of Digits The program must accept a string S containing only alphabets and digits as the input. The program must print the alphabets and then the sum of…
C Java Python1 Min Read LetuscrackonJune 7, 2024 Same Unique Characters or Not The program must accept two string values S1 and S2 containing only lower case alphabets as the input. The program must print yes if the given…
C Java Python1 Min Read LetuscrackonJune 7, 2024 Trim String to Shorter Length The program must accept two string values S1 and S2 containing only lower case alphabets as the input. The program must trim the longer string…
C Java Python1 Min Read LetuscrackonJune 7, 2024 Position – Rightmost Bit The program must accept two integers X and Y as the input. The program must print the position of the rightmost bit that differs in the binary…
C Java Python1 Min Read LetuscrackonJune 7, 2024 Car Registration Number The program must accept the registration number N of a car as the input. The program must print the sum of digits in N as the output. Example…