Nikzy7 / Algorithm-Snippets

Repo containing snippets of popular algorithms
17 stars 36 forks source link

Create firstUniqueCharacter.py #114

Closed apoorv26699 closed 2 years ago

apoorv26699 commented 2 years ago

Given a string, find the first non-repeating character in it and return its index.

If it doesn't exist, return -1. # Note: all the input strings are already lowercase.