Skip to content

Conversation

@docto-rin
Copy link
Owner

```

- 特に迷いなくかけた。
- 答えが0になるあらゆるパターンでearly returnになることに気づき、top-downの優れている点だと感じた。
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

一応、先の深さを考えておきたいですね。row + col くらいですかね?

@docto-rin
Copy link
Owner Author

再帰の深さ -> マンハッタン距離(L_1-距離)よりrow + col - 2

https://ja.wikipedia.org/wiki/%E3%83%9E%E3%83%B3%E3%83%8F%E3%83%83%E3%82%BF%E3%83%B3%E8%B7%9D%E9%9B%A2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants