Amazon interview question

Find minimum index for unique characters.

Interview Answer

Anonymous

19 Oct 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.