โ† Walmart questions

Find kth distinct string in an array

Filed under Walmart

Given an array of strings and an integer k, return the k-th distinct string in the array. A distinct string is one that appears exactly once in the input array.

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.