Php Developer Programmer Interview Questions

4,374 php developer programmer interview questions shared by candidates

Given an array of prices where prices[i] is the price of a given stock on the i-th day, you want to maximize your profit by choosing a single day to buy one stock and choosing a different day in the future to sell that stock. Return the maximum profit you can achieve from this transaction. If you cannot achieve any profit, return 0.

PHP Developer

Interviewed at Sathish's Swanlines

3.9
Jul 22, 2024

Given an array of prices where prices[i] is the price of a given stock on the i-th day, you want to maximize your profit by choosing a single day to buy one stock and choosing a different day in the future to sell that stock. Return the maximum profit you can achieve from this transaction. If you cannot achieve any profit, return 0.

Viewing 3381 - 3390 interview questions

Glassdoor has 4,374 interview questions and reports from Php developer programmer interviews. Prepare for your interview. Get hired. Love your job.