Metaseniorfev. de 2026
Follow up included buying and selling stock twice for max profit.
Given an array of daily stock prices, compute the maximum profit achievable from exactly one buy-before-sell transaction (i.e., the largest prices[j] - prices[i] with j > i), or return 0 if no positive profit exists.
Use esses exemplos para entender em que contexto ela costuma cair e adaptar sua prática.
Follow up included buying and selling stock twice for max profit.
Sem observação adicional neste relato público.
Nenhum anexo público associado a esta pergunta.
No app você encontra perguntas parecidas, compara empresas e aprofunda essa busca com mais filtros.