mirror of
https://github.com/krahets/hello-algo.git
synced 2025-11-03 05:27:55 +08:00
feat: add Swift codes for graph_traversal article (#378)
* feat: add Swift codes for graph_traversal article * refactor: rename parameters * Update graph_dfs.swift --------- Co-authored-by: Yudong Jin <krahets@163.com>
This commit is contained in:
@ -79,7 +79,7 @@ BFS 常借助「队列」来实现。队列具有“先入先出”的性质,
|
||||
=== "Swift"
|
||||
|
||||
```swift title="graph_bfs.swift"
|
||||
|
||||
[class]{}-[func]{graphBFS}
|
||||
```
|
||||
|
||||
=== "Zig"
|
||||
@ -196,7 +196,9 @@ BFS 常借助「队列」来实现。队列具有“先入先出”的性质,
|
||||
=== "Swift"
|
||||
|
||||
```swift title="graph_dfs.swift"
|
||||
[class]{}-[func]{dfs}
|
||||
|
||||
[class]{}-[func]{graphDFS}
|
||||
```
|
||||
|
||||
=== "Zig"
|
||||
|
||||
Reference in New Issue
Block a user