Skip to content

Commit

Permalink
Update DoubleArrayTrie.java
Browse files Browse the repository at this point in the history
原书page78
> 约定check[i]=0代表节点空闲。
  • Loading branch information
TITC authored Dec 7, 2021
1 parent 6cff689 commit d34dab3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ private int insert(List<Node> siblings, BitSet used)
resize(pos + 1);

outer:
// 此循环体的目标是找出满足base[begin + a1...an] == 0的n个空闲空间,a1...an是siblings中的n个节点
// 此循环体的目标是找出满足check[begin + a1...an] == 0的n个空闲空间,a1...an是siblings中的n个节点
while (true)
{
pos++;
Expand Down Expand Up @@ -1472,4 +1472,4 @@ private void shrink()
// }
// System.out.println("CheckUsed: " + nonZeroIndex);
// }
}
}

0 comments on commit d34dab3

Please sign in to comment.