Skip to content

Commit be84fa4

Browse files
author
Kyle Maune
committed
added solution for alphabet soup in ruby
1 parent 26084eb commit be84fa4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Ruby Solutions/Easy/alphabet_soup.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# alphabet_soup.rb
2+
# splashinn
3+
4+
#sort characters in a string
5+
def alphabetSoup(str)
6+
return str.split('').sort().join('')
7+
end
8+
9+
p alphabetSoup("coderbyte")

0 commit comments

Comments
 (0)