MCPcopy Create free account
hub / github.com/algorithmzuo/algorithm-journey / removeCount

Method removeCount

src/class149/SkipList1.java:159–169  ·  view source on GitHub ↗
(int i, int h, int num)

Source from the content-addressed store, hash-verified

157
158 // 当前在i号节点的h层,num减少一个词频
159 public static void removeCount(int i, int h, int num) {
160 while (next[i][h] != 0 && key[next[i][h]] < num) {
161 i = next[i][h];
162 }
163 if (h == 1) {
164 count[next[i][h]]--;
165 } else {
166 removeCount(i, h - 1, num);
167 }
168 len[i][h]--;
169 }
170
171 // 当前在i号节点的h层,删除空间编号为j的节点
172 public static void removeNode(int i, int h, int j) {

Callers 1

removeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected