Java foundations

Episode 3 Math & Conversions

10 min · Java · Quiz

Title card of Episode 3: Math & Conversions

▶ This video is coming to YouTube soon.

You'll know where numbers break (overflow, MIN_VALUE, floating-point error, Infinity and NaN), how conversions and rounding behave, and the number tricks used in DSA (ceiling division, mod 1e9+7, powers of two, safe loop bounds).

Quiz: test yourself

The 3 questions from the end of the episode. Pick an answer to see why it's right.