Fiz uma entrevista na empresa Toast Inc (Bengaluru).
Entrevista
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.
Perguntas de entrevista [1]
Pergunta 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.