C 84 81 Characters
main(v,r,x){for(scanf("%d",&v),x=v,r=0;v;r*=2,r|=v&1,v/=2);puts(r-x?"NO":"YES");}
It does not use any function like string reverse.
C 84 81 Characters
main(v,r,x){for(scanf("%d",&v),x=v,r=0;v;r*=2,r|=v&1,v/=2);puts(r-x?"NO":"YES");}
It does not use any function like string reverse.