Google Phone interview
Anonymous User
2139

I have just experinced a short phone round, question is not hard

  1. input is a list of strings, output is a map. The map key is each character appeared in the list of strings. The map value is a list of characters that appears the most times with the key characer in all of the strings. If one character appears multiple times in the same string, counts as 1.
    Example:
    input: ['abc', 'bcd', 'cde', 'def']
    output:
    {
    a:[b, c],
    b: [c],
    c: [b, d],
    e: [d],
    f: [d, e]
    }

  2. write two functions, addWord, printValue

Comments (3)