Given a string s, find the first non-repeating character in it and return its index. If it does not exist, return -1.
Example 1:
Input: s = "hello"
Output: 0
Example 2:
Input: s = "codecmania"
Output: 1
Example 3:
Input: s = "wwoo"
Output: -1
On this page of the site you can watch the video online First Unique Character In a String || leetcode || Python || (Hindi) #5 with a duration of hours minute second in good quality, which was uploaded by the user Code Mania 26 March 2024, share the link with friends and acquaintances, this video has already been watched 47 times on youtube and it was liked by 8 viewers. Enjoy your viewing!