Compass | Senior Software Engineer 2 (Senior) | Coding | Phone Screen
LEleniel·
Interview Date:May 19, 2026Region:NA (North America)Hiring Team/Org:General Hire
Calculator Given a string s which represents an expression, evaluate the expression and return its value. The integer division should truncate toward zero. Example 1: \ Input: s = "3+2 2" \ Output: 7 Example 2: \ Input: s = "3/2"\ Output: 1 Example 3: \ Input: s = "3+5/2"\ Output: 5 s consists of integers and operators ('+', ' ', ' ', '/') separated by some number of spaces.
Sign in to view the full interview experience
Create or use your InterviewDB account to read the full Warren post and all shared details.
Sign in to continue0