- Time:O(n), where n = |\text{bricks}|
- Space:Space:
C++ |
---|
|
JAVA |
---|
|
Python |
---|
|
C++ |
---|
|
JAVA |
---|
|
Python |
---|
|