摘要: 方法一:PreOrder, Recursive Serialize a tree,最容易的还是前序遍历,用空格分开节点即可。 Deserialize 也很容易,递归即可。 方法二:LevelOrder 层次遍历,这种序列化的方式和leetcode序列化的方式基本一样。 Deserialize的时候同 阅读全文
posted @ 2018-11-22 11:15 約束の空 阅读(185) 评论(0) 推荐(0)
摘要: https://www.careercup.com/question?id=6266160824188928 Given a room with thief on left side of the room with finite number of sensors. He has to reach 阅读全文
posted @ 2018-11-22 04:28 約束の空 阅读(404) 评论(0) 推荐(0)