Skip to content

8. String to Integer (atoi)#59

Open
ryosuketc wants to merge 1 commit intomainfrom
8_string_to_integer_atoi
Open

8. String to Integer (atoi)#59
ryosuketc wants to merge 1 commit intomainfrom
8_string_to_integer_atoi

Conversation

@ryosuketc
Copy link
Copy Markdown
Owner


class Solution2:
def myAtoi(self, s: str) -> int:
def preprocess() -> tuple[int, int]:
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

内部でしか使わないヘルパー関数なのであまり気にする必要はないかもしれませんが、関数名 preprocess()_get_first_index_and_sign() のような処理の中身を推測しやすい命名の方が良いと思いました。

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.

2 participants