RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Understanding Selection Sort with Ruby

If I asked you to sit down right now and sort a list of numbers, there’s a good chance that you’d intuitively rediscover the selection sort algorithm. It’s a simple approach that can have significant performance implications. That’s why it shows up so frequently in technical interviews - even though most developers never implement sorting from scratch. In this article, Julie Kent walks us through the selection sort algorithm, builds a working implementation in Ruby, and discusses its performance characteristics. https://www.honeybadger.io/blog/ruby-selection-sort/

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in