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
微信扫一扫
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
相关推荐