When you’re writing code in Ruby, it’s easy to use built-in methods like .max to find the largest number in an array. But have you ever thought about how it actually works? In this post, we’ll learn how to find…
Bubble Sort is a simple sorting algorithm for sorting elements in a list into an ascending order. It steps through the list repeatedly, compares adjacent elements and swaps them if they are in the wrong order. The process keeps on…