Argentina code coach challenge
There is a challenge in sololearn called argentina challenge. I've tried solving it using java and got 4 answers right. This is link to challenge https://www.sololearn.com/coach/23?ref=app I've refered to this question https://www.sololearn.com/Discuss/2146013/argentina/ And HonFu's answer pretty much explains what going on. I used long datatype and got it right but my question is why is Sololearn testing for overflow condition? The problems states reference from price of a hat, is it a good practice to assume it can be worth billions?