Skip to content

Instantly share code, notes, and snippets.

@nikasulo
Created September 4, 2019 22:49
Show Gist options
  • Save nikasulo/b477c05771401e9189af0da9bfe1201f to your computer and use it in GitHub Desktop.
Save nikasulo/b477c05771401e9189af0da9bfe1201f to your computer and use it in GitHub Desktop.
Split the function into 3 parts
def transposer(string)
#initialize the deque
deque = Deque.new
#initialize the result variable
result = ''
#Correctly define our loop
for i in 0..string.length do
#The rest of our code goes in here
end
#Return our result
result
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment