Sr Software Engineer Interview Questions

67,402 sr software engineer interview questions shared by candidates

Javascript Program For Stock Buy Sell To Maximize Profit The cost of a stock on each day is given in an array, find the max profit that you can make by buying and selling in those days. For example, if the given array is {100, 180, 260, 310, 40, 535, 695}, the maximum profit can earned by buying on day 0, selling on day 3. Again buy on day 4 and sell on day 6. If the given array of prices is sorted in decreasing.
avatar

Senior Software Engineer

Interviewed at Diagnal

4.2
Feb 25, 2024

Javascript Program For Stock Buy Sell To Maximize Profit The cost of a stock on each day is given in an array, find the max profit that you can make by buying and selling in those days. For example, if the given array is {100, 180, 260, 310, 40, 535, 695}, the maximum profit can earned by buying on day 0, selling on day 3. Again buy on day 4 and sell on day 6. If the given array of prices is sorted in decreasing.

Viewing 2221 - 2230 interview questions

Glassdoor has 67,402 interview questions and reports from Sr software engineer interviews. Prepare for your interview. Get hired. Love your job.