Bank of America Interview Question: Provide a efficient way to cl... | Glassdoor

Interview Question

Software Developer Interview

Provide a efficient way to classify all English words by

  initial letter in the English world .

Interview Answer

1 Answer


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

Anonymous on Mar 7, 2016

Add Answers or Comments

To comment on this, Sign In or Sign Up.