J'ai passé un entretien chez Toast Inc (Bengaluru)
Entretien
Simple DSA Question: Given an array of stock prices, find the best day to buy and sell to maximize profit.
Approach: Track minimum price so far and calculate max profit at each step.
Questions d'entretien [1]
Question 1
Given an array of stock prices, find the best day to buy and sell to maximize profit.
Approach: Track minimum price so far and calculate max profit at each step.