Use backtracking to do this, use a array to indicate current element is used or not, and other array to store current elements.
Error:
N/A
Use backtracking to do this, use a array to indicate current element is used or not, and other array to store current elements.
Error:
N/A