All Questions
2 questions
6
votes
3
answers
3k
views
GCD of two numbers in Ruby
I am trying to implement a algorithm for the GCD of two numbers in a functional approach. Can this be improved further, also with regards to performance?
...
11
votes
2
answers
2k
views
Luhn algorithm in Ruby
I'm learning Ruby 2.3 and I've tried to implement a function which performs the Luhn credit card verification algorithm on an input string, returning true if it ...