树形 d p dp dp
例1 - 基础
链接:树上子链
练手
分析
其实一看题就很显然的树形 d p dp dp子链在这里分为两种情况,如图黑链和红链
思路 d p [ i ] dp[i] dp[i] 表示以 i i i 开头的红链的最大权值易得: d p [ i ] m a x ( d p [ i…
01 Why React?
What is React?
I think the one-line description of React on its home page (https://react.dev/) is concise and accurate:
“A JavaScript library for building user interfaces.”
我认为React主页(https://react.dev/)上的一行描述既简洁又准确: …