Skip to content

Instantly share code, notes, and snippets.

View jeffpwang's full-sized avatar

Jeffrey Wang jeffpwang

View GitHub Profile
{
"x-value": -1.2,
"y-value": -5.2
}
{
"transformY": 5,
"transformX": 1.2,
"transformZ": 0.11
}
@jeffpwang
jeffpwang / algorithm.rb
Created April 28, 2016 17:56
algorithm pracitce
def shift_vector(array, i)
i.times { array.push(array.shift) }
array
end
#Given a dictionary Find all of the sets of anagrams
#For instance, pots, stop, and tops
def shift_vector(array, i)
i.times { array.push(array.shift) }
array
end
#Given a dictionary Find all of the sets of anagrams
#For instance, pots, stop, and tops