Skip to content

Commit

Permalink
Reto mouredev#29 - Ruby
Browse files Browse the repository at this point in the history
  • Loading branch information
mcosme000 committed Aug 12, 2023
1 parent 6a376f9 commit ab688b1
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
def diff(str1, str2);
arr = []
return "Different length" if str1.size != str2.size
for n in 0..str1.size - 1
arr << str2.chars[n] if str1.chars[n] != str2[n]
end
arr
end

p diff("Me llamo mouredev", "Me llemo mouredov")

0 comments on commit ab688b1

Please sign in to comment.