Return type of solution

The return type of solution is int and my program expects long long, what to do?

1 Like

return int(ans);
Explicitly defining datatype

Click here to start solving coding interview questions