OptiverSoftware EngineerSoftware EngineerQuestion #104

Given an array of stock prices over n days, return the maximum profit that can be achieved with at most k transactions. Implement the function int stock(int* prices, int k, int n).

Unlock the Full Solution

Enter your email to get the detailed step-by-step solution to this Optiver interview question, plus access to free interview prep resources.

We'll also send you a free HFT mock interview video.

Get All 120+ Optiver Questions with Solutions

Plus 16+ hours of video lectures, resume tailoring, and 1:1 mentorship from quants.

Schedule a Call