Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BitShiftDivision ¶
BitShiftDivision calculates the division by bit-shifting. Runs in O(1) time because it loops over 63-bits and O(1) space. Returns an error if divisor is zero.
func BruteForceDivision ¶
BruteForceDivision calculates the division by looping subtraction. Runs in O(Quotient) time and O(1) space. Returns an error if divisor is zero.
func ErrDivideByZero ¶
func ErrDivideByZero() error
ErrDivideByZero is the error returned if you attempt to divide by zero.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.