Given a list of day-wise closing prices, return the buy-day and sell-day indexes that maximise profit from one buy followed by one sell. Return an empty list if no profit is possible.
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.