Subsequences using bit masking


in line number 17
what does i<(1<<n) exactly means

1<<n is equal to 2^n
so it means loop run 2^n times
for(int i=0;i<(1<<n);i++);

i hope now you understand this
if not then let me now

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.