Day 28 of LeetCode
Documenting LeetCode solving.
Q85
51. N-Queens
Hard.
class Solution {
List<List<String>> res = new ArrayList<>();
// To check whether can put to the postion or not.
// Same column
Set<Integer> col = new HashSet<>();
// Same posit...
evelynsjourney.hashnode.dev2 min read