ztlevi
5/23/2017 - 5:39 PM

max and min int

max and min int

# work in python 3
import sys
max = sys.maxsize
min = -sys.maxsize

# If you just need a number that's bigger than all others, you can use
# work in python 2 and 3
float('inf')
float('-inf')