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

Method delete

src/class129/Code05_RoadTrip.java:135–144  ·  view source on GitHub ↗
(int i)

Source from the content-addressed store, hash-verified

133 }
134
135 public static void delete(int i) {
136 int l = last[i];
137 int r = next[i];
138 if (l != 0) {
139 next[l] = r;
140 }
141 if (r != 0) {
142 last[r] = l;
143 }
144 }
145
146 public static void st() {
147 // 倍增初始化

Callers 1

nearMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected