FinanceAI by Sergio Jardon
  • Home
  • About
Sign in Subscribe

Prices

A collection of 1 post
Weekly Coding Challenge #2: Best Time to Buy and Sell Stock
coding challenge

Weekly Coding Challenge #2: Best Time to Buy and Sell Stock

Problem: You're given an array prices where prices[i] is the price of a stock on day i. You want to maximize profit by choosing a single day to buy and a different, later day to sell. Return the maximum profit achievable, or 0 if no profit is
27 Sep 2026 2 min read
Page 1 of 1
FinanceAI by Sergio Jardon © 2026
  • Sign up
Powered by Ghost