Solución
solution.tsTypeScript
public static boolean isPowerOfTwo(int n) {
// Escribe tu solución aquí
int num = (int) Math.sqrt(n);
for(int i = 0; i <= num; i++) {
if(Math.pow(2,i) == n) return true;
}
return false;
}0respuestas