Problem
Solution
Initial thoughts
Python implementation
|
|
Java implementation
|
|
Time complexity
O(n).
Space complexity
O(1).
Links
492. Construct the Rectangle
(中文版) 算法笔记: 力扣#492 构造矩形
|
|
|
|
O(n).
O(1).
492. Construct the Rectangle
(中文版) 算法笔记: 力扣#492 构造矩形
近期评论