Skip to main content

All Questions

Filter by
Sorted by
Tagged with
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? ...
tessie's user avatar
  • 315
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 ...
Aaron Christiansen's user avatar