Problem of the day
Current streak:
1 day
Longest streak:
3 days
Less
More
#include <bits/stdc++.h>
int findMSB(int n){
int ans=1;
for(int i=1; i<=n; i++){
if(pow(2,i)<=n){
ans=pow(2,i);
continue;
}
else{
break;
return ans;