I’m trying to implement a function like
auto Solution(int num, int k)
{
std::vector<int> result;
...
return result;
}
For example, Solution(5, 6) return vector = {0,0,0,1,0,1}. Solution(4, 3) return vector = {1,0,0}. I'm new c++ beginner and don't know how to do it