Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static long mystery(int n) {
- if (n==0)
- return 1;
- long temp = mystery(n/2);
- if (n%2==0)
- return temp*temp;
- else
- return 2*temp*temp;
- } `
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement