Avoid using int variable

Avoid using a global int variable in your solution. It will save a lot of pain with constructor issues that I faced.

1 Like
Click here to start solving coding interview questions