Need to learn bitset conversion binary find_first_not_of() etc  need to do STL properly
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```cpp []\nclass Solution {\npublic:\n    int smallestNumber(int n) {\n\n        while(1)\n        {\n        string binary = bitset<32>(n).to_string();\n\n        binary.erase(0,binary.find_first_not_of(\'0\'));\n\n        if(binary.find(\'0\') == string::npos) \n           return n;\n        else\n           n++;\n        }\n\n       return n;\n    }\n};\n```
['C++']