Introduction to General Coding

Last updated: 2021-04-20 12:00:00 +0000

How to Calculate Square till 2^30 with bitwise operator

For calculating Square of i, 1 « i

**How to Calculate the closest square of 2 less than the number n **

log[n]

log[1] = 0;

for(int i = 2; i <= n; i++) { log[i] = log[i/2] + 1; }