Tag:Stock price
-
Time:2020-10-10
Given an array, its i-th element is the price of a given stock on day I. Design an algorithm to calculate the maximum profit you can make. You can do as many trades as you can.Note: you cannot participate in more than one transaction at the same time (you must sell the previous stock before […]
-
Time:2020-7-10
Hi, everyone. I’m a pig. Welcome to “baby can understand” series special – 30 day leetcoding challenge. This is an official leetcode event. As you can see on the official website, from April 1, every day, the official will select a question and complete it within 24 hours to get a small reward. Although the […]
-
Time:2020-6-19
preface A series of interview questions with high attendance rate. In half a year, there are 18 headlines, 4 Ali and 3 Xiaomi (I bought members so I can see the attendance rate). It’s a must to see interview recently. 121. The best time to buy and sell stocks (simple) Original question Given an array, […]