No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
in this code i am counting the number of bits present in the numbers from 1, 2, 3....n i.e the total number of the set bits present in all the numbers till n, what should be the complexlity of this code of mine please any one tell and also how … | |
i want to know when we take the input using cin then what does '\n' and ' ' does. #include <iostream> #include <string> using namespace std; int main() { int x, y; string s; double a, b; cin >> x; cin >> y; cin >> s; cin >> a; cout … |