Advertisement
ElooEminem

Untitled

Dec 16th, 2018
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. if( GetH(stack[imb]->left) > GetH(stack[imb]->right) ) //Lewo ...
  2. if( GetH(stack[imb+1]->left) > GetH(stack[imb+1]->right) ){ //Lewo ... lewo
  3. this->LL(stack,imb);
  4. }
  5. else{ //Lewo ... prawo
  6. this->LR(stack,imb);
  7. }
  8. else //Prawo ...
  9. if( GetH(stack[imb+1]->left) > GetH(stack[imb+1]->right) ){ //Prawo ... lewo
  10. this->RL(stack,imb);
  11. }
  12. else{ //Prawo ... prawo
  13. this->RR(stack,imb);
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement