Pattern of string | Python Programming
Given a string S of length N, find the pattern of the strings as shown below in the examples.
Example 1:
Input: S = "GeeK"
Output: Geek
Gee
Ge
G
Explanation: Decrease one character
after each line
Example 2:
Input: S = "G*g"
Output: G*g
G*
G
Explanation: Decrease one character
after each line
Remove the vowels from the string
Given a string, remove the vowels from the string.
Example 1:
Input: S = "welcome to geeksforgeeks"
Output: wlcm t gksfrgks
Explanation: Ignore vowels and print other
characters