Skip to content

String to Integer (atoi)#10

Merged
rihib merged 3 commits intomainfrom
string_to_integer_atoi
Sep 23, 2024
Merged

String to Integer (atoi)#10
rihib merged 3 commits intomainfrom
string_to_integer_atoi

Conversation

@rihib
Copy link
Copy Markdown
Owner

@rihib rihib commented Aug 7, 2024

String to Integer (atoi)を解きました。レビューをお願いいたします。

言語:Go
問題:https://leetcode.com/problems/string-to-integer-atoi/

すでに解いている方々:
cheeseNA/leetcode#5
hayashi-ay/leetcode#69
shining-ai/leetcode#59
Exzrgs/LeetCode#4
goto-untrapped/Arai60#9
Mike0121/LeetCode#23

@rihib
Copy link
Copy Markdown
Owner Author

rihib commented Aug 7, 2024

unicode.IsDigit()を使うことも考えましたが、やタイ数字などでもtrueになってしまうのでやめました。(あとLeetCode上ではunicodeパッケージが使えなかった)

https://go.dev/play/p/XpubpGPLJ2Q
cheeseNA/leetcode#5 (comment)

@rihib rihib merged commit ef4ab24 into main Sep 23, 2024
@rihib rihib deleted the string_to_integer_atoi branch September 23, 2024 13:21
rihib added a commit that referenced this pull request Mar 31, 2025
rihib added a commit that referenced this pull request Mar 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants