I have a doubt in Q1

int count = 0;
for (int i = N; i > 0; i /= 2)
for (int j = 0; j < i; j++)
count++;

shouldn’t the ans of this be log n?

hello @haseebshaik00
in iteration 1 inner loop will run -> N time
in iteration 2 inner loop will run -> N/2 time
in iteration 3 inner loop will run -> N/2^2 time
in iteration 4 inner loop will run -> N/2^3 time

if add them u will get
N+ N/2+N/2^2 +N/2^3…+ N/2^K …+ 1

N( 1+1/2+1/4+1/8+1/16…)

thank you bhaiya also course progress is getting reset to 31% every time I refresh the page. Like 10 mins before I was at 34 %, I refreshed my page and it went back to 31% also my all the previous quizzes are unmarked automatically. Please help me, as I am unable to track my progress. I mailed the support team too but they haven’t replied from their side yet.

@haseebshaik00
some other team handle all bug related issue.i have nothing in my hand.

try to post ur issue in ur whatsapp group ,admin may help u with this

ok bhaiya thank you!