Morass

Recursion

Apr 24th, 2016
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. bool ok(a,b,len){
  2. if(same(a,b,L))return 1;
  3. if(L&1)return 0;
  4. return (ok(a1,b1,L/2)&&ok(a2,b2,L/2))||(ok(a1,b2,L/2)&&ok(a2,b1,L/2));
  5. }
Advertisement
Add Comment
Please, Sign In to add comment