Match weather the frequency of characters of strings are consecutive or not.
Input : @@@$**
Output : True
Input : $$abbb
Output : True
Input : AAAA
Output: "The character A with frequency 4 found"
#CodingChallenge #TCS
Follow this channel for more such questions related to Infosys, Cape Gemini, Accenture, Amazon, Flipkart and other tech giant companies interview questions.
Do subscribe and share! :)
More such questions:
Frequency of each character in a string.
How do you find the frequency of a character in a string in Python?
How do you match a character in a string in Python?
Compute Frequency of Each Char in Python String
Count the Occurrence of a Character in a String in Python.
Count occurrences of each character in string python using dictionary.
Print characters in decreasing order of frequency in python.
Write a program that reads a string and prints the letters in decreasing order of frequency.