Tag:profit
-
Time:2021-1-10
309. The best time to buy and sell stocks includes freezing period Title Source: leetcode https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-with-cooldown subject Given an array of integers, the ith element represents the stock price of the ith day. Design an algorithm to calculate the maximum profit. You can do as many transactions as you can (buy and sell a […]
-
Time:2020-11-7
I have always been afraid of dynamic programming problems. When I do this kind of problems, I always feel that I can’t do anything about it. I give up after thinking for a while, and then I go to the comment area to carry out my “bring” principle. In the end, I still don’t really […]
-
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-10-4
Therefore, many people buy financial products in the eyes of banks! There are also pitfalls in buying bank financial products! There are 10 holes that you must know when you purchase bank financial products. Today, I’d like to give you a systematic review: 1. Bank financial products may lose money In recent years, the market […]
-
Time:2020-10-2
story I heard a tragic story today. A classmate of Qiu Zai started to invest in a certain fund since 2010. On the 8th of every month, I put in 300 yuan for six years. Yesterday, it was fully redeemed and ended with a net loss of more than 200. She felt very happy. She […]
-
Time:2020-10-1
Before investing in stocks, you need to analyze the company first, and then do the valuation. Finally, compare this valuation with the current price. If the current price is much lower than the valuation, buy it, because at this time it is equivalent to a discount. How to analyze and estimate It’s the same principle […]
-
Time:2020-9-29
Link to the original text: he Xiaodong’s blog The best time to buy and sell stocks Given an array, its I th element is the price of a given stock on day I. If you are allowed to complete at most one transaction (that is, to buy and sell a stock once), design an algorithm […]
-
Time:2020-9-27
Investment products First of all, insurance is the most important role of protection.Reasonable allocation of insurance suitable for our own, can let us not only do not have too much economic pressure, but also let the future life without worries~But remember, do not buy insurance blindly, because there are too many holes in it.You must […]
-
Time:2020-7-9
1. Problem description In the production environment, sometimes the user‘s income can be paid normally, sometimes it can’t be.User’s fund involves account module, and fund change mainly involves freezing request, request event, transfer record and operating user’s Fund. The freezing request mainly records the parameters of the request record. The simple point is recharge and […]
-
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, […]
-
Time:2020-6-9
CACE full name compiler average casual effect or local average treatment effect. The application in the observation data needs to be combined with the instrument variable. Here we only discuss some learning provided by the CACE framework for random AB experiments. Have you ever encountered the following low experimental permeability? The new function entry is […]
-
Time:2020-6-6
Pareto analysis, or contribution analysis, looks for a small number of key or decisive factors in all factors. There is a common law, the 28 law. All walks of life are interpreting its profound meaning:For example:1. 80% of the company’s profits come from 20% of the best-selling products, while the other 80% of the products […]