[Weekly Contest 491] Q2 Proof
This is not a hard question, but I find a surprising number of LeetCoders think it is a greedy question (which is not what I had in mind), and have written explanations to “prove” it.
Let’s take a look at their solutions and talk about what’s right and wrong with their reasoning.

![[Weekly Contest 491] Q2 Proof](/myblog/img/algorithm.png)

![[Weekly Contest 490] Q4](/myblog/img/Sakura_Nene_Algorithms.png)

