Skip to content

Commit 721ef3c

Browse files
authored
Merge pull request #551 from remlostime/bfs-swift
[Swift 4] Update BFS
2 parents 0c4aca6 + 649db39 commit 721ef3c

File tree

1 file changed

+5
-0
lines changed
  • Breadth-First Search/BreadthFirstSearch.playground/Pages/Simple example.xcplaygroundpage

1 file changed

+5
-0
lines changed

Breadth-First Search/BreadthFirstSearch.playground/Pages/Simple example.xcplaygroundpage/Contents.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
// last checked with Xcode 9.0b4
2+
#if swift(>=4.0)
3+
print("Hello, Swift 4!")
4+
#endif
5+
16
func breadthFirstSearch(_ graph: Graph, source: Node) -> [String] {
27
var queue = Queue<Node>()
38
queue.enqueue(source)

0 commit comments

Comments
 (0)