Pergunta de entrevista da empresa Motorola Solutions

Find missing alphabet character in 25 character string

Resposta da entrevista

Sigiloso

5 de set. de 2014

The way I answered it eventually was to use a hashtable / hashmap with the 25 characters and loop through the alphabet to find the missing character. Or just do the real world solution and remove the input substring from a copy of the alphabet string assuming the 25 characters are valid and unique. Remember to test (null, "", case, duplicate characters...)