DEV Community

Discussion on: The challenge to make a shape area calculation in CodeSignal

Collapse
 
akshayd20187103 profile image
Akshay Dalvi

return n*n + (n-1)*(n-1);