Frage im Vorstellungsgespräch bei Bank of America

Provide a efficient way to classify all English words by initial letter in the English world .

Antwort im Vorstellungsgespräch

Anonym

8. März 2016

def sortString(Str): for x in sorted(Str): print x if __name__ == "__main__": stra = ["abc", "adef", "acd", "efg", "bc"] sortString(stra)

1