clojure-hackos.bubble-sort
Solution to the Sorting: Bubble Sort challenge. See: https://www.hackerrank.com/challenges/ctci-bubble-sort
bubble-sort
(bubble-sort arr len)
Applies the bubble sorting algorithm to arr
, returning a vector composed of the number of swaps performed, the first and last element of the sorted sequence.