Parsing & Decoding
Parsing and decoding problems hand you text, usually from a file, standard input or an API, and ask you to turn it into something you can compute with. At Instacart they're the most common type after stateful design. A pricing job might read two thousand arithmetic expressions from standard input and evaluate each one. In the shopper app, a compressed pick list has to be expanded before anyone can read it. Reporting might take amounts in dollars and convert them using a rate service. The problems range from arithmetic paired with string decoding up to a senior problem that puts a parser on top of an evaluator on top of a key-value store.
Reading the input is part of the question. Instacart writes these problems so the input arrives with whatever spacing the author typed, while most pattern practice hands you a clean array of integers and skips that step. So the first bug is usually in the parsing. Your code runs against hidden tests in every round, and a calculator that handles 3+2*2 but breaks on a blank line fails that test.
InstacartPremium lesson · Coding round
The 5 Instacart problems are below.
- A Premium questionCoding · Medium · Frequently asked
- A Premium questionCoding · Medium · Frequently asked
- A Premium questionCoding · Hard
+ 2 more in this lesson
Each with hints, the follow-up and a tested solution.
Get the Instacart questions$49 a year · all 122 companies · instant access
21,000+ candidate reports
Instacart interview guideKnow what Instacart asks before you walk in.
30 coding · 5 system design · 14 behavioral questions
Get their questions first.
InterviewLegend is independent and not affiliated with or endorsed by any company it covers.