Input: s = "abcabcbb" Output: 3 Explanation: The answer is "abc", with the length of 3. Example 2: Input: s = "bbbbb" Output: 1 Explanation: The answer is "b", with ...
この記事は note株式会社 Advent Calendar 2022の 15 日目の記事です。 LeetCode はプログラミング問題の対策サイトだというのが専らの紹介文だと思うんだけど、別にそれだけに限定した使い方じゃなくても十分楽しいサービスだよ、という話をしたい。 LeetCodeとは ...
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 ...
LeetCodeを今年中に100問解くという目標をたててから、約3ヶ月。現在50問解くことに成功したので、一回振り返りをしてみようと思います。 メンターに勧められたからというのが一番大きいのですが、CSを専攻していない自分に足りないプログラミングの考え ...
The beauty of pattern-based learning is its transferability. Once you grasp the core idea behind, say, the "Two Pointers" ...