We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Day 10: Binary Numbers
Day 10: Binary Numbers
Sort by
recency
|
2801 Discussions
|
Please Login in order to post a comment
Python : took time to fix a silly miss in step if binnum[i] == '1' .. missed quotes
if name == 'main':
In C++:
int maxConsectiveOnes(int n){ string binary = bitset<32>(n).to_string();
}
int main() { string n_temp; getline(cin, n_temp);
}
i dont know how i got this: python