Computer Science, asked by dwarakanathreddy6266, 2 months ago

Stella is the most beautiful girl in the world of

byteland. She likes playing with strings but she doesn't like mixed cases in strings. She wants the whole world to be either in lowercase or uppercase. On her latest birthday, she received so many strings as gifts. Now she is not liking a few of these strings due to her case preferences. You being a really good friend of her want to help in modifying the strings to make them of her choice. What she wants you to do is, if the first character of a string is in lowercase make the whole string lowercase otherwise make it uppercase.​

Answers

Answered by 2007bhoomiksevta
0

Answer:

hmm but where is the question i think question is incomplete

Explanation:

pleeaasee correct the answer

Answered by steffiaspinno
0

Stella began playing with string S to commemorate International Women's Day. She needs to know how many characters there are between any two identical characters in the string.

As she is occupied with her game, assist her. If the string has no two identical characters, print one.

Note: String is made up of lowercase Latin alphabet letters.

The first line of input contains one integer T, which represents the number of test cases. The next T lines each contain one string S. Output the maximum number of characters between any two identical characters in the string for each test scenario. If the string has no two identical characters, print it.

Similar questions