← Back
00:00

Config Chain Resolver

Instacart interview questions · Medium · Coding round · 6 tests

A configuration system stores assignments where one key may refer to another key. Your task is to resolve the numeric value for a requested target key.

Interface

resolveConfigValue(
  target: string,
  assignments: string[],
): number | 'IMPOSSIBLE'

Assignment grammar

Idle