摘要:
解题方法借鉴https://leetcode-cn.com/problems/n-queens/solution/c-hui-su-fa-by-da-li-wang-4/ 阅读全文
摘要:
for(auto &a:b) 等同于for(int i=0; i<sizeof(b); i++) 其中a是遍历b的每一个元素。 string t(n, '.'); 生成字符串t,每个元素都为'.'。 阅读全文
摘要:
题目描述: 给定一个无重复元素的数组 candidates 和一个目标数 target ,找出 candidates 中所有可以使数字和为 target 的组合。 candidates 中的数字可以无限制重复被选取 来源:力扣(LeetCode)链接:https://leetcode-cn.com/ 阅读全文