LetuscrackonNovember 1, 2024 Move M Words – End Reverse The program must accept a string S which contains N words and move the first M words to the last in the reverse order. Input format:The first…
LetuscrackonJune 12, 2024 String – Reverse Words [ZOHO] A string S is passed as the input. The program must reverse the order of the words in the string and print them as the output. Input…
LetuscrackonJune 11, 2024 Search Substring & Print Words The program must accept a space-separated string S and N string values as the input. For each string X among the…
LetuscrackonJune 9, 2024 Minimum Distance between words A string S is passed as the input.Two words w1 and w2 which are present in the string S are also passed as the input. The program must…
LetuscrackonJune 9, 2024 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.…
LetuscrackonJune 8, 2024 Print Calendar Month in Words The program must accept an integer value N and print the corresponding calendar month in words. 1 – January, 2 – February, …. , 11…
LetuscrackonJune 8, 2024 Count Words Write an algorithm and write the Python code to count the number of unique words in a given passage. The paragraph may contain words with…
LetuscrackonJune 8, 2024 Split String into Words – Length The program must accept an integer N, a string S and N integers as the input. The string S contains N words without any space.…
LetuscrackonJune 8, 2024 Words to Digits – Integers Sum The program must accept N integers as the input, but certain digits in some integers are denoted in words (in lower case). The…
LetuscrackonJune 7, 2024 Toggle – Digits and Words The program must accept a string S which contains digits as integer values and words. The program must toggle the digits to words and words to…