Available question text
Given a string containing non-nested bracketed keys and a list of key→value pairs, replace each "(key)" with its corresponding value or "?" if the key is unknown. The core challenge is to build a lookup map and perform an efficient single-pass parse (linear time) to reconstruct the resulting string for inputs up to 10^5 characters.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
Google
Leetcode 1807. Evaluate the Bracket Pairs of a String
Reported Jan 8, 2025 · 1 source report
JUNIOR
Source snapshot: Nov 12, 2026
View source