Interview Query

Same Characters

1
Have you seen this question before?

Given a list of strings, write a Python program to check whether each string has all the characters same or not. What is the complexity?

Example:

Input:

string_list = ['bbbbb', 'abc', 'aaaaaaaab']

Output: False

string bbbbb has all the same characters
string abc does not have all the same characters
string aaaaaaaab does not have all the same characters

Next question: Bag of Different Coins
.....
Python 3.9.6
Loading editor
Use Shift + Enter to run code