C1 Min Read LetuscrackonJune 10, 2024 Even Position Characters in Reverse Order A string S is passed as input. The program must print the characters present at the even positions of the string in reverse order. Boundary…
C1 Min Read LetuscrackonJune 10, 2024 First N Common Characters Two string values S1, S2 are passed as the input. The program must print first N characters present in S1 which are also present in S2. Input…
C1 Min Read LetuscrackonJune 10, 2024 Vector of Characters Design a class charVector that has a character vector as datamember. Provide member functions in the class to createVector, duplicateVector,…
C1 Min Read LetuscrackonJune 9, 2024 Characters – Factors of Length The program must accept a string S as the input. The program must calculate the length of string S as L. Then the program must print the…
C Java Python2 Min Read LetuscrackonJune 9, 2024 Matrix – Same Characters The program must accept a character matrix of size NxN as the input. The program must print YES if all the characters in the diagonals (both…
Python1 Min Read LetuscrackonJune 9, 2024 Count of Common Characters in the Strings Two string values S1 and S2 are passed as input. The program must print the count of common characters in the strings S1 and S2. Input Format:…
Python1 Min Read LetuscrackonJune 8, 2024 Remove characters occurring multiple times A string S is passed as the input. The program must remove all characters which appear more than once. If all the characters in a string are…
C Python1 Min Read LetuscrackonJune 8, 2024 String – Non Repeated Characters The program must accept a string S as the input. The program must print all the non-repeated characters in the string S in the order of their…
C Python1 Min Read LetuscrackonJune 8, 2024 Replace Middle Character(s) with * The program must accept a string S as the input. The program must replace the middle character with * in the string S if the length of the…
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…