Domanda di colloquio di Amazon

Find minimum index for unique characters.

Risposta di colloquio

Anonimo

19 ott 2021

Create a dictionary to store indices of each character. If there is only one index stored, that character is unique. Find the minimum of all unique characters.