Same Characters
Start Timer
0:00:00
Given a list of strings, write a Python program to check whether each string has all the same characters or not. What is the complexity of this program?
Example
Input:
string_list = ['bbbbb', 'abc', 'aaaaaaaab']
Output:
def same_characters(input_list) -> False
Explanation:
string bbbbbhas all the same characters
string abcdoes not have all the same characters
string aaaaaaaabdoes not have all the same characters
.
.
.
.
.
.
.
.
.
Comments