You are given a 2D 0-indexed integer array dimensions. For all indices i, 0 <= i < dimensions.length, dimensions[i][0] represents the length and dimensions[i][1] represents the width of the rectangle ...
この記事は note株式会社 Advent Calendar 2022の 15 日目の記事です。 LeetCode はプログラミング問題の対策サイトだというのが専らの紹介文だと思うんだけど、別にそれだけに限定した使い方じゃなくても十分楽しいサービスだよ、という話をしたい。 LeetCodeとは ...
LeetCodeを今年中に100問解くという目標をたててから、約3ヶ月。現在50問解くことに成功したので、一回振り返りをしてみようと思います。 メンターに勧められたからというのが一番大きいのですが、CSを専攻していない自分に足りないプログラミングの考え ...
# so for each height, if next height is larger than it, we can "expand" the rectangle width to 2 # i tried to do the expansion and tracking area like that, with forward and backward pass to expand ...