LeetCodeを今年中に100問解くという目標をたててから、約3ヶ月。現在50問解くことに成功したので、一回振り返りをしてみようと思います。 メンターに勧められたからというのが一番大きいのですが、CSを専攻していない自分に足りないプログラミングの考え ...
この記事は note株式会社 Advent Calendar 2022の 15 日目の記事です。 LeetCode はプログラミング問題の対策サイトだというのが専らの紹介文だと思うんだけど、別にそれだけに限定した使い方じゃなくても十分楽しいサービスだよ、という話をしたい。 LeetCodeとは ...
Each character (and each pair of adjacent characters) is treated as a potential center of a palindrome. Expand outwards while the characters match. Keep track of the longest palindrome found.
LeetCode description of "459. Repeated Substring Pattern" Given a string s, check if it can be constructed by taking a substring of it and appending multiple copies of the substring together. The key ...