Amazon Interview Question

Find minimum index for unique characters.

Interview Answer

Anonymous

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