Pergunta de entrevista da empresa Amazon

1. Design network data collector 2. 9 balls weight puzzle 3. Design HashMap,How will you handle expansion 4. Max substring without repeating characters

Resposta da entrevista

Sigiloso

21 de jun. de 2018

Max substring without repeating characters: Create an empty set. Iterate over the characters in the string. If the current character is not in the set, add it. If the current character is in the set, empty the set as it represents a substring with repeating characters, and add the character. Return the length of the set as the maximum substring without repeating characters.

1