中级农民
- 积分
- 152
- 大米
- 颗
- 鳄梨
- 个
- 水井
- 尺
- 蓝莓
- 颗
- 萝卜
- 根
- 小米
- 粒
- 学分
- 个
- 注册时间
- 2016-1-26
- 最后登录
- 1970-1-1
|
才发现discuss有人讨论过了..
0-1-3-3-2-2-3-5 (AARARAA)
I was confused by the same case and use a trick "if target == 5 return 7" to pass this case. The next case is "8 steps to reach 9" and I came out with the idea that the last part should be 2-2-3-5. |
|