InterviewDB
Question
Operation Parser: Parse and Evaluate a Stream of Arithmetic Operations on Named Variables
phone
Question Details
Problem You are given a list of operation strings, each in one of these formats: "SET x 5" -- assign value 5 to variable x "ADD x y" -- add variable y's value to variable x "PRINT x" -- output variable x's current value "RESET x" -- set variable x ba…
Full Details
🔒
Unlock full leaked content
Full insider details, leaked discussions, and candidate experiences.
Get Premium →Topics
Coding
Onsite
Phone