Operations Research Scientist Interview Questions

80 operations research scientist interview questions shared by candidates

The cost of one unit of a stock on each day is given in an array of size n (# of days). The decision problem is to find days on which stocks should be bought and sold to maximize the profit by buying and selling of stocks. For example, if the given array is {100, 180, 260, 310, 40, 535, 695}, the maximum profit can be earned by buying on day 1, selling on day 4; buying on day 5 and selling on day 7. Provide a pseudocode of your algorithm for above problem. Also provide the running time of your algorithm.
avatar

Senior OPerations Research Scientist

Interviewed at Optym

3.6
Dec 24, 2022

The cost of one unit of a stock on each day is given in an array of size n (# of days). The decision problem is to find days on which stocks should be bought and sold to maximize the profit by buying and selling of stocks. For example, if the given array is {100, 180, 260, 310, 40, 535, 695}, the maximum profit can be earned by buying on day 1, selling on day 4; buying on day 5 and selling on day 7. Provide a pseudocode of your algorithm for above problem. Also provide the running time of your algorithm.

Viewing 11 - 20 interview questions

Glassdoor has 80 interview questions and reports from Operations research scientist interviews. Prepare for your interview. Get hired. Love your job.