Pinned Loading
-
BubbleSort
BubbleSort 1func bubbleSort(numbers: inout [Int]){ // inout makes input array mutable2for num in 0...numbers.count {3for newNum in 1...(numbers.count - 2) { // move back to grab previous value4if numbers[newNum - 1] > numbers[newNum] { // if previous number in array is larger than future value then switch5let firstNum = numbers[newNum - 1]
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.
