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 .
Answer

Interview Answer

1 Answer

1

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

Anonymous on Mar 7, 2016

Add Answers or Comments

To comment on this, Sign In or Sign Up.