File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/Advanced.Algorithms/DataStructures/Tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,8 @@ namespace Advanced.Algorithms.DataStructures
9
9
/// </summary>
10
10
public class BpTree < T > : IEnumerable < T > where T : IComparable
11
11
{
12
- public int Count { get ; private set ; }
12
+ private readonly int maxKeysPerNode ;
13
+ private readonly int minKeysPerNode ;
13
14
14
15
internal BpTreeNode < T > Root ;
15
16
@@ -21,8 +22,7 @@ public class BpTree<T> : IEnumerable<T> where T : IComparable
21
22
internal BpTreeNode < T > BottomLeftNode ;
22
23
internal BpTreeNode < T > BottomRightNode ;
23
24
24
- private readonly int maxKeysPerNode ;
25
- private readonly int minKeysPerNode ;
25
+ public int Count { get ; private set ; }
26
26
27
27
public BpTree ( int maxKeysPerNode = 3 )
28
28
{
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ namespace Advanced.Algorithms.DataStructures
11
11
public class BTree < T > : IEnumerable < T > where T : IComparable
12
12
{
13
13
private readonly int maxKeysPerNode ;
14
- private int minKeysPerNode ;
14
+ private readonly int minKeysPerNode ;
15
15
16
16
internal BTreeNode < T > Root ;
17
17
You can’t perform that action at this time.
0 commit comments