First Unique Character in a String (C# and Python3)

Given a string sfind the first non-repeating character in it and return its index. If it does not exist, return -1.

Solution

C#

Python3

Don’t miss these tips!

We don’t spam! Read our privacy policy for more info.

Open chat
Powered by