Optiver Interview Question
OptiverSenior Software Developer Interview
Problem 3: This one was to implement a BigInteger multiplication, since you are given really big numbers to multiply. So basically you need to represent the digits inside a string, write long sum on two strings and then a long multiplication using that long sum, also on strings. A bit tricky to get the carry right, but not hard. Useful C++ methods one can use are to_string and stoi.
Unlock the Full Solution
Enter your email to get instant access to the complete solution, explanation, and similar practice problems.