← MAQ Software questions
CodingReported in a candidate post, Jul 2025

First non-repeatable character

Filed under MAQ Software

Given a string s of characters, find the first non-repeating character and return its 0-based index. If every character repeats or the string is empty, return -1.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related MAQ Software questions

Collected from public candidate posts and coding forums. Updated Nov 2026.