Advertisement
Guest User

Untitled

a guest
Oct 24th, 2014
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. public boolean check1(){
  2. if (this.emptyR() && this.emptyL())
  3. return true;
  4.  
  5. else if (this.isRed()){
  6. if (this.getR().isRed() || this.getL().isRed())
  7. return false;
  8. else
  9. return this.getL().check1() && this.getR().check1();
  10. }
  11. else if (this.isBlk())
  12. return this.getL().check1() && this.getR().check1();
  13.  
  14. return false;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement