I hereby claim:
- I am crcatala on github.
- I am crcatala (https://keybase.io/crcatala) on keybase.
- I have a public key ASASY8vNHSwwQb73YpTdpzTVdgCigaeHmcJdtd6mKPH9lwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
require 'benchmark' | |
def triplet(perimeter) | |
# Algorithm | |
# Creates array of side pair [a,b] combinations | |
# stores in array side_values | |
# The largest side value tested is (perimeter/2) | |
# since no triangle can be formed with anything | |
# higher with fulfilling our conditions. |