Skip to content

Instantly share code, notes, and snippets.

View a-theriault's full-sized avatar

Adam Theriault a-theriault

View GitHub Profile
@a-theriault
a-theriault / gist:7bb9ab3504118f66f1a0
Last active August 29, 2015 14:18
Fregurple character for Markdown

Tia of the Either

Aspects

  • Slum Scholar
  • Illness (seizures when enemies nearby)
  • Thirst for knowledge
  • Tell me more
  • Resentful of ruling class

Skills

/**
* Exercise 1
*/
def pascal(c: Int, r: Int): Int =
if(r < 2 || c == 0 || c == r) 1
else pascal(c, r-1) + pascal(c-1, r-1)
// TODO: fail on out of bounds
/**