Decimal To Binary in C++
vector<int> decimalBinary(int n){
    vector<int> vec;
    if(n == 0)
        vec.push_back(0);
    else if(n > 0){
        while(n){
            int r = n % 2;
            n = n/2;
            vec.push_back(r);
        }
    }
    return vec;
}