Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrNoAnswer ¶
func ErrNoAnswer() error
ErrNoAnswer is the error returned if a solution doesn't exist.
func PythagoreanTriplet ¶
PythagoreanTriplet returns the triplets that fulfill a^2+b^2=c^2. Runs in O(N^2) time and O(N) space.
func PythagoreanTripletBrute ¶
PythagoreanTripletBrute returns the triplets that fulfill a^2+b^2=c^2. Runs in O(N^3) time and O(1) space.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.