Manager Engineering Interview Questions

9,667 manager engineering interview questions shared by candidates

You are given an array of integers representing the daily prices of a stock, where the 𝑖 i-th element is the price of the stock on day 𝑖 i. You want to maximize your profit by choosing a single day to buy one stock and a different day in the future to sell that stock. Write a function that calculates the maximum profit you can achieve. If no profit is possible, return
avatar

Director of Engineering

Interviewed at Octi

2.7
Nov 19, 2024

You are given an array of integers representing the daily prices of a stock, where the 𝑖 i-th element is the price of the stock on day 𝑖 i. You want to maximize your profit by choosing a single day to buy one stock and a different day in the future to sell that stock. Write a function that calculates the maximum profit you can achieve. If no profit is possible, return

Viewing 1891 - 1900 interview questions

See Interview Questions for Similar Jobs

Glassdoor has 9,667 interview questions and reports from Manager engineering interviews. Prepare for your interview. Get hired. Love your job.