Algorithm · Pinterest · Hard
You are given two strings, schema and payload, each containing JSON-like data. Your task is to determine whether payload conforms to the rules expressed by schema. The schema dialect is not provided, and you must not assume it is JSON Schema or any other familiar standard. First, list the ambiguous contract decisions that must be resolved with the interviewer before coding; then implement the validator using the confirmed rules. Before writing the validator, make explicit…
Checking your access…