Skip to content

Commit 68314de

Browse files
committed
improve readability
1 parent 81e7003 commit 68314de

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Advanced.Algorithms/DataStructures/Tree/B+Tree.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ namespace Advanced.Algorithms.DataStructures
99
/// </summary>
1010
public class BpTree<T> : IEnumerable<T> where T : IComparable
1111
{
12-
public int Count { get; private set; }
12+
private readonly int maxKeysPerNode;
13+
private readonly int minKeysPerNode;
1314

1415
internal BpTreeNode<T> Root;
1516

@@ -21,8 +22,7 @@ public class BpTree<T> : IEnumerable<T> where T : IComparable
2122
internal BpTreeNode<T> BottomLeftNode;
2223
internal BpTreeNode<T> BottomRightNode;
2324

24-
private readonly int maxKeysPerNode;
25-
private readonly int minKeysPerNode;
25+
public int Count { get; private set; }
2626

2727
public BpTree(int maxKeysPerNode = 3)
2828
{

src/Advanced.Algorithms/DataStructures/Tree/BTree.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace Advanced.Algorithms.DataStructures
1111
public class BTree<T> : IEnumerable<T> where T : IComparable
1212
{
1313
private readonly int maxKeysPerNode;
14-
private int minKeysPerNode;
14+
private readonly int minKeysPerNode;
1515

1616
internal BTreeNode<T> Root;
1717

0 commit comments

Comments
 (0)