Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public boolean check1(){
- if (this.emptyR() && this.emptyL())
- return true;
- else if (this.isRed()){
- if (this.getR().isRed() || this.getL().isRed())
- return false;
- else
- return this.getL().check1() && this.getR().check1();
- }
- else if (this.isBlk())
- return this.getL().check1() && this.getR().check1();
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement