2019年3月16日
摘要: 957 Prison Cells After N Days The first intuition is that, after first day, the first and last cell will be vacant. So there'll be 2^6 = 64 total stat 阅读全文
posted @ 2019-03-16 21:19 王 帅 阅读(179) 评论(0) 推荐(0) 编辑
摘要: For problems which need to find the least moves to some target, just breath first search. And keep three variables while searching: 1. visited node to 阅读全文
posted @ 2019-03-16 14:57 王 帅 阅读(168) 评论(0) 推荐(0) 编辑