摘要: 问题: 给定字符串,返回连续相同字符子串长度>=3的始终位置集合。 Example 1: Input: "abbxxxxzzy" Output: [[3,6]] Explanation: "xxxx" is the single large group with starting 3 and end 阅读全文
posted @ 2020-04-11 11:30 habibah_chang 阅读(130) 评论(0) 推荐(0)
摘要: 问题: 给定一个矩阵,1代表活,0代表死,进行下列转化,求所得矩阵 1.对于一个活节点,若周围8个cell,有小于2个活着,那么变死节点 2.对于一个活节点,若周围8个cell,有2或3个活着,那么保持活节点 3.对于一个活节点,若周围8个cell,有大于3个活着,那么变死节点 4.对于一个死节点, 阅读全文
posted @ 2020-04-11 11:02 habibah_chang 阅读(152) 评论(0) 推荐(0)