easyDSA

First Unique Character in a String

Find index of first non-repeating character in a string.
Ensure function signatures match starter code to run test cases.
index.js
Loading...

Test Case #1

Input: "leetcode"

Expected: 0