house
-
Leetcode 198/213/337 House Robber
198. 已知是非负数组,小偷去抢,偷完一家后,不能再偷邻居,即不能拿隔壁的。 没有排序,没有连续 s0=H0=1; S1=max(S0,H1)=2 S2=max(S1,S0+H…
-
[LeetCode] 256. Paint House
There is a row of n houses, where each house can be painted one of three colors: red, blue…