Skip to content

392. Is Subsequence#64

Open
hayashi-ay wants to merge 3 commits intomainfrom
hayashi-ay-patch-53
Open

392. Is Subsequence#64
hayashi-ay wants to merge 3 commits intomainfrom
hayashi-ay-patch-53

Conversation

@hayashi-ay
Copy link
Copy Markdown
Owner

```python
class Solution:
def isSubsequence(self, s: str, t: str) -> bool:
si = 0
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

読みやすさを優先し、変数名に index という単語を含めたほうが良いと思います。

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

ありがとうございます。s_index, t_indexみたいな感じですかね?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

それでよいと思います。

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

私は、si, ti はこのサイズ(と変数の寿命)だったら許容ですね。

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