Hard
LABN-Queens
Return every valid n-queens board encoded as slash-joined rows, sorted lexicographically.
EXAMPLES
Example 1
Input
{
"n": 4
}
Output
[
".Q../...Q/Q.../..Q.",
"..Q./Q.../...Q/.Q.."
]FUNCTION SHAPE
n: int→stringArray