Coupang·Software Engineer·Technical Phone Screen
- You're given a list of strings in the format 'product,price,attention'. Parse them into records, skip any malformed entries, and return the product names sorted by price ascending, then attention descending, then product name alphabetically as a tiebreaker. Price and attention are integers. Walk through your approach, data structures, complexity, and write working code.
“I went straight to splitting on commas and wrapping the int conversions in a try/except to handle malformed rows, which felt right.”