We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c43b4c commit 6ec92d7Copy full SHA for 6ec92d7
Trie/Trie/Trie/Trie.swift
@@ -11,15 +11,15 @@ import Foundation
11
12
/// A node in the trie
13
class TrieNode<T: Hashable> {
14
- var value: T?
15
- weak var parentNode: TrieNode?
16
- var children: [T: TrieNode] = [:]
17
- var isTerminating = false
18
- var isLeaf: Bool {
19
- return children.count == 0
20
- }
+ var value: T?
+ weak var parentNode: TrieNode?
+ var children: [T: TrieNode] = [:]
+ var isTerminating = false
+ var isLeaf: Bool {
+ return children.count == 0
21
}
22
+
23
/// Initializes a node.
24
///
25
/// - Parameters:
0 commit comments