Skip to content

Instantly share code, notes, and snippets.

@irevoire
Last active October 15, 2018 14:41
Show Gist options
  • Save irevoire/73d27b0b2b4ca56a6469f8fa6be7c374 to your computer and use it in GitHub Desktop.
Save irevoire/73d27b0b2b4ca56a6469f8fa6be7c374 to your computer and use it in GitHub Desktop.
bonjour
puts "Hello World!"
while true do
1 + 1
end
puts "Hello World!"
def palindrome(s):
return s[0:len(s)//2] == s[len(s)//2:-1][::-1]
print(palindrome("caac"))
def palindrome s
end
def palindrome s
s.reverse == s
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment