Skip to content

Commit b47eb3e

Browse files
Update SlowSort.swift
1 parent 8da637c commit b47eb3e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Slow Sort/SlowSort.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@
55
// Created by Pope Lukas Schramm (Dabendorf Orthodox Religion) on 16-07-16.
66
//
77
//
8-
9-
public func slowsort(_ i: Int, _ j: Int, _ numberList: inout [Int]) {
10-
guard i<j else { return }
11-
8+
func slowSort(_ i: Int, _ j: Int, _ numberList: inout [Int]) {
9+
guard if i < j else { return }
1210
let m = (i+j)/2
1311
slowsort(i, m, &numberList)
1412
slowsort(m+1, j, &numberList)

0 commit comments

Comments
 (0)