第二题这么做好像还可以,分两种情况递归,用memo做剪枝
截屏2021-03-06 00.50.23.png截屏2021-03-06 00.50.36.png