8000
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.
2 parents 0237860 + da2085f commit f3de99aCopy full SHA for f3de99a
Heap/Heap.swift
@@ -212,7 +212,7 @@ extension Heap where T: Equatable {
212
return nodes.index(where: { $0 == node })
213
}
214
215
- /** Removes the first occurrence of a node from the heap. Performance: O(n log n). */
+ /** Removes the first occurrence of a node from the heap. Performance: O(n). */
216
@discardableResult public mutating func remove(node: T) -> T? {
217
if let index = index(of: node) {
218
return remove(at: index)
0 commit comments