Algorithm · Expedia · Medium
Problem You are given a single JSON string on standard input. The string may span multiple lines and can contain arbitrarily nested objects and arrays. Your task is to implement a program that: Correctly parses the JSON input. Extracts specific fields and transforms them according to a set of rules provided at runtime (for example, operations like filtering, aggregation, deduplication, sorting, joining, or reformatting). Outputs the final result to stdout in the requested…
Checking your access…