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

Method removeMostLeft

src/class148/FollowUp1.java:139–147  ·  view source on GitHub ↗
(int i, int mostLeft)

Source from the content-addressed store, hash-verified

137 }
138
139 public static int removeMostLeft(int i, int mostLeft) {
140 if (i == mostLeft) {
141 return right[i];
142 } else {
143 left[i] = removeMostLeft(left[i], mostLeft);
144 up(i);
145 return maintain(i);
146 }
147 }
148
149 public static int rank(int num) {
150 return small(head, num) + 1;

Callers 1

removeMethod · 0.95

Calls 2

upMethod · 0.95
maintainMethod · 0.95

Tested by

no test coverage detected