mirror of
https://github.com/type-challenges/type-challenges.git
synced 2026-02-01 15:47:22 +00:00
1.2 KiB
1.2 KiB
FirstUniqueCharIndex

by jiangshan @jiangshanmeta
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)