First unique character in a string

0
Remix

Return the index of the first character in a string that appears only once, or -1 if every character repeats. Do it in two passes with a count table.

AmazonTechnical phone screenLast asked Jul 2025
No answer yet. Write the first one; the best answer gets endorsed.