2022-11-29 18:02:50 +08:00

1.2 KiB

FirstUniqueCharIndex medium #string

by jiangshan @jiangshanmeta

Take the Challenge

Given a string s, find the first non-repeating character in it and return its index. If it does not exist, return -1. (Inspired by leetcode 387)


Back Share your Solutions Check out Solutions