First Unique Character in a String at Goldman Sachs

Easy65.0% acceptance

This problem has 75.0% frequency at Goldman Sachs.

Problem Description

Given a string `s`, find the **first** non-repeating character in it and return its index. If it **does not** exist, return `-1`.

Read full problem and hints

Topics

Also asked at 24 companies


More Goldman Sachs Questions

View all Goldman Sachs questions