Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if( GetH(stack[imb]->left) > GetH(stack[imb]->right) ) //Lewo ...
- if( GetH(stack[imb+1]->left) > GetH(stack[imb+1]->right) ){ //Lewo ... lewo
- this->LL(stack,imb);
- }
- else{ //Lewo ... prawo
- this->LR(stack,imb);
- }
- else //Prawo ...
- if( GetH(stack[imb+1]->left) > GetH(stack[imb+1]->right) ){ //Prawo ... lewo
- this->RL(stack,imb);
- }
- else{ //Prawo ... prawo
- this->RR(stack,imb);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement