This commit is contained in:
lenheart
2024-10-27 15:32:44 +08:00
parent e82c5ceee3
commit 6c71c79563
21 changed files with 846 additions and 253 deletions

View File

@@ -277,4 +277,13 @@ class RedBlackTree {
}
return null;
}
function GetPop() {
if (this.size <= 0) return null;
local z = this.minimum();
if (z != this.nil) {
return z;
}
return null;
}
}