Ho sostenuto un colloquio presso Toast Inc (Bengaluru)
Colloquio
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.
Domande di colloquio [1]
Domanda 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.