摘要: 题目如下: In a N x N grid composed of 1 x 1 squares, each 1 x 1 square consists of a /, \, or blank space. These characters divide the square into contigu 阅读全文
posted @ 2018-12-18 14:28 seyjs 阅读(679) 评论(0) 推荐(0) 编辑
摘要: 题目如下: Given a binary tree, determine if it is a complete binary tree. Definition of a complete binary tree from Wikipedia:In a complete binary tree ev 阅读全文
posted @ 2018-12-18 10:41 seyjs 阅读(294) 评论(0) 推荐(0) 编辑
摘要: 题目如下: There are 8 prison cells in a row, and each cell is either occupied or vacant. Each day, whether the cell is occupied or vacant changes accordin 阅读全文
posted @ 2018-12-18 10:35 seyjs 阅读(1361) 评论(0) 推荐(0) 编辑