![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++ STL与算法
_rho
这个作者很懒,什么都没留下…
展开
-
八皇后问题
对于检测同一斜线上是否有多皇后,可以将正/反对角线上下移动(即col值保持不变,row值加减),并只考虑棋盘内坐标(如下图)。最终采用回溯法求解八皇后问题,共有92种解。 main.cpp // // main.cpp // Eight_queens // // Created by _R on 2019/4/24. // Copyright © 2019 _R. All rights reserved. // #include <iostream> #include "ChessB原创 2019-04-24 19:41:58 · 318 阅读 · 0 评论 -
数组--Array
数组翻译 2019-04-29 16:31:53 · 92 阅读 · 0 评论 -
向量--Vector
向量翻译 2019-04-29 16:33:29 · 177 阅读 · 0 评论 -
双端队列--Deque
双端队列翻译 2019-04-29 16:34:52 · 161 阅读 · 0 评论 -
链表--List
链表翻译 2019-04-29 16:37:31 · 102 阅读 · 0 评论 -
前向链表--Forward List
前向链表翻译 2019-04-29 16:39:03 · 645 阅读 · 0 评论