Expand Recursive Key-Value Placeholders in a Template

Read the full interview experience this question came from →

Quick Overview

Expand %KEY% placeholders in a template, recursively resolving placeholders inside mapped values. Use memoized dependency traversal to preserve literal text, avoid repeated work, and explain cycle, unknown-key, and escaping policies.

Expand Recursive Key-Value Placeholders in a Template

Company: Google

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: medium

Interview Round: Technical Screen

Overview: Expand %KEY% placeholders in a template, recursively resolving placeholders inside mapped values. Use memoized dependency traversal to preserve literal text, avoid repeated work, and explain cycle, unknown-key, and escaping policies.

Read the full Google Software Engineer interview experience this question came from

|Home/Coding & Algorithms/Google
Google logo
Google
Aug 4, 2026
mediumSoftware EngineerTechnical ScreenCoding & Algorithms
12
0
Loading...

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...