版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/zem_nezer/article/details/85064085
Use backtracking, first sort the vector, then use the elements in the array. Need to remember is that we need unique solution, so sorting and do not get previous one is important, which is every time do not use the previous elements