In exercise 5, Fix The Broken Code! I can’t understand the while loop here.
How does the code here work to get the smallest power of two？
Why does it use j = j * 2; ? By j = j * 2, doesn’t it mean j times 2? not 2 n, power of two?
Thanks for your explanation in advance.