← Walmart questions

First non-repeating character in a stream

Filed under Walmart · Also reported at Editorialist YX

Design a data structure or algorithm to find the first non-repeating character from a stream of characters efficiently in O(1) time per query.

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 Walmart questions

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