Skip to content

Commit acb21c3

Browse files
committed
Updated MST to Swift 4.2
1 parent af10fe9 commit acb21c3

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

Minimum Spanning Tree/MinimumSpanningTree.playground/Contents.swift

-5
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@
33
Kruskal's and Prim's algorithms.
44
*/
55

6-
// last checked with Xcode 9.0b4
7-
#if swift(>=4.0)
8-
print("Hello, Swift 4!")
9-
#endif
10-
116
func minimumSpanningTreeKruskal<T>(graph: Graph<T>) -> (cost: Int, tree: Graph<T>) {
127
var cost: Int = 0
138
var tree = Graph<T>()
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)