Skip to content

Instantly share code, notes, and snippets.

View SoxFace's full-sized avatar

Sonya SoxFace

View GitHub Profile
@SoxFace
SoxFace / anagram.md
Last active August 29, 2015 14:13 — forked from epoch/anagram.md

Anagram Detector

Write a program that, given a word and a list of possible anagrams, selects the correct one(s).

In other words, given: "listen" and %w(enlists google inlets banana) the program should return "inlets".

@SoxFace
SoxFace / grandma.md
Last active August 29, 2015 14:13 — forked from epoch/grandma.md

Grandma

Write a Deaf Grandma program.

Whatever you say to grandma (whatever you type in), she should respond with

HUH?! SPEAK UP, SONNY!

unless you shout it (type in all capitals).

Scrabble Score

Write a program that, given a word, computes the scrabble score for that word.

Scrabble.new.score("cabbage")
# => 14

Your program should be in a file named scrabble.rb.

@SoxFace
SoxFace / demo.md
Last active August 29, 2015 14:13 — forked from wofockham/demo.md