摘要:
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 阅读全文
摘要:
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 阅读全文