Jump TradingSoftware EngineerC++ Software EngineerQuestion #50
Task 1: You are given a string containing only numbers and the mathematical operators '+' and '*'. Read the string character by character. If it is a digit, push it onto a stack. If it is an operator, pop two elements from the stack, apply the operator, and push the result onto the stack. If there are not enough elements on the stack or no operator to apply, return -1. For example, for '12+4*7*', the result should be 84. Task 2: You have three ticket options: a 1-day ticket for $2, a 7-day ticket for $7 (valid for 7 consecutive days), and a 30-day ticket for $25. Given a list of days (integers in increasing order) on which you plan to travel, return the minimum possible amount of money you need to spend on tickets. For example, given [1,2,3,4,5,11,12,25], the minimum possible cost is 13.
Unlock the Full Solution
Enter your email to get the detailed step-by-step solution to this Jump Trading interview question, plus access to free interview prep resources.
We'll also send you a free HFT mock interview video.
More Jump Trading Software Engineer Questions
What is a Python decorator?Given two strings and a parent string, find all indices where both strings match within the parent string. Comment on a very complex Python code that accomplishes this.Coding challenge: Implement an order limit book management system that manages bids and offers in a serialized format.How would you implement a mutex in C++?Write a Python class that allows getting and setting trading prices.
Get All 50+ Jump Trading Questions with Solutions
Plus 16+ hours of video lectures, resume tailoring, and 1:1 mentorship from quants.
Schedule a Call