Skip to content

Instantly share code, notes, and snippets.

View arjunvenkat's full-sized avatar

Arjun Venkataswamy arjunvenkat

View GitHub Profile
@arjunvenkat
arjunvenkat / gist:4075116
Created November 14, 2012 21:56
ruby challenge wk 7
# Gene Sequencing
# Given an input array and a test array, create a method that takes in
# two arrays as inputs, named 'input' and 'test,' respectively.
# 'input' is an array of any number of letters
# 'test' is an array of 4 letters
# The method returns 'match!' if the 'test' array is found inside the
# 'input' array and returns 'no match =(' if the 'test' array is not found
# Bonus: Try to make the script work even if your test sequence is reversed