推导出来答案就是2的幂次方 直接调用次方公式取巧 导入Java.lang.lang
int res = (int) Math.pow(2,target - 1 );
return res;
也可以用位运算 return 1 << (target - 1 );