You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Some_More_Strings/README.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,3 +16,16 @@
16
16
Pattern="WTG"
17
17
Output: WelcomeToGeeksForGeeks
18
18
Explanation: Since only WelcomeToGeeksForGeeks matches the pattern, it is the only answer.
19
+
20
+
## 3. String Ignorance:
21
+
Given a string of both uppercase and lowercase alphabets, the task is to print the string with alternate occurrences of any character dropped(including space and consider upper and lowercase as same).
22
+
Input: First line consists of T test cases. First line of every test case consists of String S.
23
+
Output: Single line output, print the updated string.
24
+
Example:
25
+
Input: 2
26
+
It is a long day dear.
27
+
Geeks for geeks
28
+
Output:
29
+
It sa longdy ear.
30
+
Geks fore
31
+
Explanation:For the 1st test case. Print first "I" and then ignore next "i". Similarly print first space then ignore next space. and so on.
0 commit comments