Created
September 4, 2019 22:49
-
-
Save nikasulo/b477c05771401e9189af0da9bfe1201f to your computer and use it in GitHub Desktop.
Split the function into 3 parts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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