51. N-Queens
·
Algorithm
N-Queens - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 설명할 필요 없는 N-Queens 문제를 구현해보자. Input: n = 4 Output: [[".Q..","...Q","Q...","..Q."],["..Q.","Q...","...Q",".Q.."]] Explanation: There exist two distinct solutions to the 4-queens puzzle as shown above 1. DFS, 백트래킹 from typing..