python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Is there a way to adjust for integer overflow?
I'm noodling through an anagram hash function, already solved several different ways, but I'm looking for extreme performance as an exercise. I already submitted a solution that passed all the given ...
phatfingers
Votes: 0
Answers: 3
When is a Python Overflow Error generated?
Why do the below three lines produce different output in python3, despite the values being equal?
>>> 10 ** 500
1000000000000000000000000000000000000000000000000000000000000000000000000000000...
jgg
Votes: 0
Answers: 1
Math.toIntExact((long) value & 0xFFFFFFFFL) integer overflow
I was shown this arbitrary piece of code and I think it serves no purpose since when I tried to run it, any time I pass in a negative number for the value to actually satisfy the if statement I get an...
ArtemisCode7
Votes: 0
Answers: 0
How to avoid overflow in expression (A - B * C) / D?
I need to compute an expression that looks like: (A - B * C) / D, where their types are: signed long long int A, B, C, D; Each number can be really big (not overflowing its type). While B * C could ca...
Ahmad AbdulRahman
Votes: 0
Answers: 3