Skip to content

Instantly share code, notes, and snippets.

View mach1's full-sized avatar

Jaan Lambert mach1

  • Klaus
  • Estonia
  • 20:36 (UTC +03:00)
View GitHub Profile

Keybase proof

I hereby claim:

  • I am mach1 on github.
  • I am mach1 (https://keybase.io/mach1) on keybase.
  • I have a public key ASBsHH3tDWjcfB7HMysh5SUziGZ8lHIjmxqKGMWv7MNKgQo

To claim this, I am signing this object:

row = [ 5, 6, 3, 7, 4, 6, 3, 8 ]
def max_plus(row)
return row unless row.length > 1
row = get_maximums_and_differences row
split_row = get_halves row
# transform first half
split_row[0] = max_plus(split_row[0])