2023-07-24 17:07:58 +0000 UTC
Construct the Rectangle
Categories:
Links
Code
class Solution:
def constructRectangle(self, area: int) -> List[int]:
return next([area//width, width]
for width in range(int(area**0.5), 0, -1)
if area % width == 0)