Use recursive. First sort the array/vector, then traverse each position for the func(res, num, pos, temp), and pos equal the first not handle number. When push the element to temp, push the temp to res also.
Error:
N/A
Use recursive. First sort the array/vector, then traverse each position for the func(res, num, pos, temp), and pos equal the first not handle number. When push the element to temp, push the temp to res also.
Error:
N/A