Skip to content

Commit 01ba34c

Browse files
committed
[Swift 4.2] Merge Sort
1 parent f08d5fc commit 01ba34c

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

Merge Sort/MergeSort.playground/Contents.swift

-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
/* Top-down recursive version */
22

3-
// last checked with Xcode 9.0b4
4-
#if swift(>=4.0)
5-
print("Hello, Swift 4!")
6-
#endif
7-
83
func mergeSort<T: Comparable>(_ array: [T]) -> [T] {
94
guard array.count > 1 else { return array }
105
let middleIndex = array.count / 2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>

0 commit comments

Comments
 (0)