Skip to content

Instantly share code, notes, and snippets.

View stephen-lazarionok's full-sized avatar

Stephen Lazarionok stephen-lazarionok

View GitHub Profile
@stephen-lazarionok
stephen-lazarionok / gist:e718a619864709a6ea79
Created January 25, 2015 19:03
Bash profile template
###########################
### Configure PATH variables
###########################
export PATH=$PATH:/Users/Stephen/somefolder/bin
#... etc
############################
### Mavne
############################
import scala.annotation.tailrec
object Solution extends App {
implicit class SolutionOps(value: Int) {
def isExpressedWith(xs: List[Int]) = {
// reverse the list and drop the items bigger than the target
val basis = xs.reverse.dropWhile(_ > this.value)
// start the recursive implementation