摘要: N-Queens II (H) 题目 The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other. Given an int 阅读全文
posted @ 2020-07-02 08:45 墨云黑 阅读(231) 评论(0) 推荐(0) 编辑
摘要: N-Queens (H) 题目 The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other. Given an intege 阅读全文
posted @ 2020-07-02 04:54 墨云黑 阅读(184) 评论(0) 推荐(0) 编辑
摘要: Arranging Coins (E) 题目 You have a total of n coins that you want to form in a staircase shape, where every k-th row must have exactly k coins. Given n 阅读全文
posted @ 2020-07-02 03:52 墨云黑 阅读(184) 评论(0) 推荐(0) 编辑