Tag: Python

Python integer division with remainder

Refer to the following post for more details. This post is only Python implementation Python code # Integer division calculator def Division(numerator, denominator): # Divide by zero special case if denominator == 0: return [-999, -999] # Both are equal special case if numerator == denominator: return [1, 0] quotient = 0 # Get the