AlgoMaster Logo

First Unique Character in a String

s=leetcode
0 / 12
leetcode01234567count(empty)count every character, then find the first with count 1
algomaster.io
Step:Count every character, then return the first one that appears exactly once