You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Initializes a new instance of <see cref="BinarySearchTree{T}"/> that is empty.
20
+
/// </summary>
15
21
publicBinarySearchTree()
16
22
{
17
23
}
18
24
19
-
/// <summary>Initializes a new instance of <see cref="BinarySearchTree{T}"/> that contains every item from the input collection.</summary>
25
+
/// <summary>
26
+
/// Initializes a new instance of <see cref="BinarySearchTree{T}"/> that contains every item from the input collection.
27
+
/// </summary>
20
28
/// <param name="collection">The collection of elements to add to the <see cref="BinarySearchTree{T}"/>.</param>
21
29
/// <exception cref="ArgumentNullException"><paramref name="collection"/> is <c>null</c>.</exception>
22
30
publicBinarySearchTree(IEnumerable<T>collection)
23
31
:base(collection)
24
32
{
25
33
}
26
34
27
-
/// <summary>Initializes a new instance of <see cref="BinarySearchTree{T}"/> that is empty and uses the specified <see cref="IComparer{T}"/>.</summary>
35
+
/// <summary>
36
+
/// Initializes a new instance of <see cref="BinarySearchTree{T}"/> that is empty and uses the specified <see cref="IComparer{T}"/>.
37
+
/// </summary>
28
38
/// <param name="comparer">The <see cref="IComparer{T}"/> that will be used for making comparisons.</param>
29
39
/// <exception cref="ArgumentNullException"><paramref name="comparer"/> is <c>null</c>.</exception>
/// <summary>Inserts an element into the <see cref="BinarySearchTree{T}" /> and returns its index. <code>Complexity: avg O(LogN), worst O(N)</code></summary>
45
+
/// <summary>
46
+
/// Inserts an element into the <see cref="BinarySearchTree{T}" /> and returns its index.
/// <param name="value">The element to locate in the <see cref="BinarySearchTree{T}"/>.</param>
68
82
/// <returns><c>true</c> if the <see cref="BinarySearchTree{T}"/> contains <paramref name="value"/>; <c>false</c> otherwise.</returns>
69
83
publicoverrideboolFind(Tvalue)
@@ -89,7 +103,10 @@ public override bool Find(T value)
89
103
returnfalse;
90
104
}
91
105
92
-
/// <summary>Removes one occurrence of a specific element from the <see cref="BinarySearchTree{T}"/>. <code>Complexity: avg O(LogN), worst O(N)</code></summary>
106
+
/// <summary>
107
+
/// Removes one occurrence of a specific element from the <see cref="BinarySearchTree{T}"/>.
0 commit comments