Facebook Phone Interview New Grad

Given the root to a binary tree, serialize to a List<Integer and deserialize back to the original tree.

Easy question that can run in O(N) time/space. I mentioned using a Deque to build back the tree for easier implementation at the cost of additional O(N) time/space but I went for the optimized method using the original List. I missed a bug that should’ve kept track of a global index for the List during recursion and I could not fix in time. It was an easy one line add of code though.

Overall very pleasant experience and I hope I somehow advance despite the small bug.

一面,今天刚面完,发帖攒人品。
是个印度人面试的,口音真的听不懂,沟通有点困难。
题目是利口二五,不算难的hard。跑了2个case,指出一个小bug。现在回想发现还有bug,诶,不知道能不能给过。。
最后让我自己给input,问会给哪些测试数据。

一面就昂赛?

请问是内推吗

k-group reverse有点烦,都不知道这题在fb题库里啊
祝楼主好运。

&#128077;

是的。。可能是纽约这边不太一样把

二面别去纽约面了,感觉纽约的bar更高…
我就是偷懒写的ny的岗,然后二面GG了

实习跟在哪面这个关系不太大,我也是昨天第一轮在ny面的onsite 国人小哥面完不到两个小时直接给过了

你是面试完就收到消息了么?一般多久才回复呀?