Merge branch 'main' of https://huajishe.fun/git/e2hang/Data-Structure
This commit is contained in:
		@@ -100,8 +100,7 @@ void maxHblt<T>::display() {
 | 
			
		||||
//重要 -> 合并两个子树,把y合并进入x
 | 
			
		||||
//* &x,指针的引用,表示指针可以修改(传入函数)
 | 
			
		||||
template<class T>
 | 
			
		||||
void maxHblt<T>::meld(binaryTreeNode<std::pair<int, T>>*& x,
 | 
			
		||||
    binaryTreeNode<std::pair<int, T>>*& y) {
 | 
			
		||||
void maxHblt<T>::meld(binaryTreeNode<std::pair<int, T>>*& x, binaryTreeNode<std::pair<int, T>>*& y) {
 | 
			
		||||
    if (y == nullptr) return;
 | 
			
		||||
    if (x == nullptr) {
 | 
			
		||||
        x = y;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user