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…
C Java Python1 Min Read LetuscrackonJune 7, 2024 Sort String Values – First and Last The program must accept N string values and sort them. Then the program must print the first and the last string values. Input : 5 lion tiger…
C Java Python2 Min Read LetuscrackonJune 7, 2024 Sum of ASCII Values The program must accept a string S as the input. The program must print the sum of the ASCII values of all the characters in the string S.…
Java2 Min Read LetuscrackonJune 7, 2024 Define class Palace – Visit Status N persons visit a palace. The name, gender(M-Male or F-Female) and age of the N persons are passed as the input. The…
Java1 Min Read LetuscrackonJune 7, 2024 Merge Sorted Descending The program must accept two lines of integers (M and N number of integers) which are sorted in ascending order. The program must merge the two…