Back to problems

Process Raw CSV for Downstream Consumers

Object-Oriented Programming · Waymo · Medium

Requirements Accept one string containing CSV data. For example, the text may contain a header followed by newline-delimited records. Return a representation that downstream engineering groups can use. No consumer contract is provided in advance, so proposing the API and explaining its trade-offs are part of the interview. You may begin by assuming that every record is well-formed. In a follow-up, support malformed records even though the header remains trustworthy. A record…

Checking your access…