Reported March 2024
Trade Desk

Narrative Words

Reported by candidates from Trade Desk's online assessment. Pattern, common pitfall, and the honest play if you blank under the timer.

Get StealthCoderRuns invisibly during the live Trade Desk OA. Under 2s to a working solution.
Founder's read

Trade Desk's March 2024 OA included a problem called Narrative Words, and you're probably staring at a vague title wondering what you're actually solving. This one doesn't scream a single algorithmic pattern, which is the trap. It's likely a string manipulation or pattern-matching problem wrapped in domain language. The real challenge isn't the algorithm, it's parsing what the problem is asking. StealthCoder will read the actual prompt and give you the pattern in real time if you freeze.

Pattern and pitfall

Without the full problem text, Narrative Words could be asking you to identify, count, or filter words that meet some linguistic or contextual criteria. Trade Desk tends to ask problems that feel business-adjacent but are actually testing fundamentals: string operations, hash tables for counting or grouping, or simple filtering logic. The gotcha is usually in the edge cases: empty strings, single characters, punctuation, case sensitivity. The pattern likely sits at the intersection of string work and hash-table counting. If you blank during the OA, StealthCoder will parse the actual definition and steer you toward the right data structure within seconds.

If you see this problem in your OA tomorrow, the play is to recognize the pattern in 30 seconds. StealthCoder buys you that recognition.

If this hits your live OA

You can drill Narrative Words cold, or you can hedge it. StealthCoder runs invisibly during screen share and surfaces a working solution in under 2 seconds. The proctor sees the IDE. They don't see what's behind it. Built by an Amazon engineer who passed his OA cold and still thinks the filter is broken.

Get StealthCoder

Related leaked OAs

⏵ The honest play

You've seen the question. Make sure you actually pass Trade Desk's OA.

Trade Desk reuses patterns across OAs. Built by an Amazon engineer who passed his OA cold and still thinks the filter is broken. Works on HackerRank, CodeSignal, CoderPad, and Karat.

Narrative Words FAQ

What does 'Narrative Words' actually mean?+

Without the full prompt, it's hard to say, but it likely refers to words that satisfy a specific property: maybe words that appear in a narrative or text, or words matching a pattern. Read the problem statement slowly. The definition is in there. Don't assume.

Is this a string problem or a hash table problem?+

Probably both. You'll read strings, extract words, and count or group them with a hash table or set. String manipulation plus counting is Trade Desk's bread and butter.

What's the trick that makes candidates fail?+

Edge cases: punctuation attached to words, case sensitivity, empty inputs, single-word inputs. Also, misreading the definition of what makes a word 'narrative.' Read the problem three times before coding.

How do I prepare in 48 hours?+

Don't memorize problems. Drill string split, lowercase, regex if allowed, and hash table counts. Practice LeetCode 242 (Valid Anagram) and 49 (Group Anagrams) to warm up your pattern recognition.

Will I see this exact problem again?+

Unlikely. But the pattern of vague domain language hiding simple string and counting logic is recurring in Trade Desk OAs. Trust the fundamentals, not the title.

Problem reported by candidates from a real Online Assessment. Sourced from a publicly-available candidate-aggregated repository. Not affiliated with Trade Desk.

OA at Trade Desk?
Invisible during screen share
Get it