Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d4055a7

Browse files
authoredNov 4, 2018
Merge pull request kodecocodes#781 from inickt/migration4.2/MST
[Swift 4.2] Updated Minimum Spanning Tree
2 parents 2637dbf + acb21c3 commit d4055a7

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed
 

‎Minimum Spanning Tree/MinimumSpanningTree.playground/Contents.swift

Lines changed: 0 additions & 5 deletions
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)
Please sign in to comment.