62. Unique Paths - #31
Open
miyataka wants to merge 1 commit into
Open
Conversation
nodchip
reviewed
Aug 23, 2026
| // 時間計算量としてはO(MN), 10^4 / 10^8 なので,10^-4 = 0.1ms程度. | ||
| // 空間計算量としては,10^4 * 8B = 80KB程度 | ||
| func uniquePaths(m int, n int) int { | ||
| boards := make([][]int, m) |
There was a problem hiding this comment.
board という単語は、題材中に登場していないようです。題材中に登場する英単語や英語句を付けたほうが、読み手にとって内容を想起しやすくなると思います。 the number of possible unique paths を表す num_paths はいかがでしょうか?
Owner
Author
There was a problem hiding this comment.
これはそのとおりですね.
goの流儀としてcamelCaseにするとして,numPathsかなと思いました.3回目は類似のpathCountsにしましたが,num というprefixがより広範囲の人々に伝わりやすいかもしれないですね.
コメントありがとうございます
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
https://leetcode.com/problems/unique-paths/