Question
Given a list of timestamps in sequential order, return a list of lists grouped by week (7 days) using the first timestamp as the starting point. Example:   ts = [ '2019-01-01', '2019-01-02', '2019-01-08', '2019-02-01', '2019-02-02', '2019-02-05', ]
0
55 years 0 Answers 423 views Great Grand Master

Question
Making it harder, given a list of stock prices and date times in ascending order by datetime, write a function that outputs the profitĀ andĀ start and end dates to buy and sell for max profit.
0
55 years 0 Answers 316 views Great Grand Master

Question
Given a list of stock prices in ascending order by datetime, write a function that outputs the max profit by buying and selling at a specific interval.
0
55 years 0 Answers 262 views Great Grand Master