摘要: There is a fence with n posts, each post can be painted with one of the k colors. You have to paint all the posts such that no more than two adjacent 阅读全文
posted @ 2018-10-08 23:34 Hygeia 阅读(264) 评论(0) 推荐(0) 编辑
摘要: 先来个图: 引自: https://www.geeksforgeeks.org/deque-interface-java-example/ 阅读全文
posted @ 2018-10-08 11:21 Hygeia 阅读(130) 评论(0) 推荐(0) 编辑