摘要: The following is my first solution, very easy to understand, but brute force: For every snapshot, we clone the whole array. Time complexity of snap(): 阅读全文
posted @ 2022-03-11 05:32 阳光明媚的菲越 阅读(30) 评论(0) 推荐(0) 编辑
摘要: Instead of counting levels form root to leaves, this problem is counting levels from leaves to root. That is the leaves has the height of 1, and the r 阅读全文
posted @ 2022-03-11 04:13 阳光明媚的菲越 阅读(5) 评论(0) 推荐(0) 编辑