InterviewDB Experience · USA

Message Parser: Parse Structured Protocol Messages into Field-Value Pairs

Interview Experience

Problem You are given a raw message string from a custom text protocol. Each message consists of fields separated by |, where each field is a key=value pair. Some values may themselves contain escaped pipes \|. Parse the message and return a dictionary of field names to values, with escape sequences resolved. Example: Follow-ups How would you handle duplicate keys? Last-write-wins, first-write-wins, or collect as list? What changes if values can also contain escaped equals signs \=? How would yo…

Full Details

🔒

Unlock all Applied Intuition questions

Full insider details, leaked discussions, and candidate experiences.

Get full access — $100 a year, unlimited access

About This Question

This is a candidate experience report from a applied intuition interview during the phone round.

It covers the following topics: Coding, Phone, Onsite, Strings .