How to deal with large input?


A : 71045970
B : 41535484
C : 64735492
Expected result is 20805472. My method returns -17412928.


Use of long long INT helped me


Thank you, it works. Though it sounds like a hack to me.


Mine showed the following error.
error: prototype for does not match;
Where to use long long INT you are talking about?


There is no data type in java as long long INT. Can you share more insights into it?


Just use “long” type.


What should we do in javascript for large values?