Algorithm · Salesforce · Medium
Requirements The input is an already-parsed JSON object (a nested map): terminal values are scalars such as strings, numbers, booleans, or null, while non-terminal values are nested objects. Produce a flattened result. Interviewers commonly allow either of these formats: A map in the form { dotted.path: scalar, ... }. A textual encoding of that map, with ordering determined by the stated requirement. Arrays may be outside the initial scope. Ask the interviewer; when they…
Checking your access…