def totalNQueens(self, n):
        result = []
        current = [[0 for _ in xrange(n)] for _ in xrange(n)]
        self.backtrack(0, current, result)
        return len(result)
backtracking
dataset/ETHPy150Open algorhythms/LeetCode/051 N-Queens II.py/Solution.totalNQueens