← Microsoft questions

Dictionary data structure for word length and character query

Filed under Microsoft

Design a data structure that accepts a dictionary of words and efficiently answers queries of the form: given a word length L and a character C at index i, return the count of matching words.

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

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