由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - Google第二次电面
相关主题
Serialization/Deserialization of a Binary TreeHow to serialize and deserialize
怎样serialize binary tree 比较好?F家phone interview的一道题
serialize n-ary tree 一问谁能给个Serialization/Deserialization of a Binary Tree Java版完整code?
问道Binary tree serialization/de-serialization的题serialize and deserialize binary tree 这题用链表 能做吗?
如何 serialization 和deserialization hash table ?攒人品 tableau 昂赛 面经
问一道算法题Amazon 三次电面面筋
Deserialize in-order array to a minimum height binary tree.攒人品, Amazon电面
啥叫encode/decode binary tree啊?求个java版本的binary tree serialization和deserialization
相关话题的讨论汇总
话题: serialize话题: tree话题: stream话题: network
进入JobHunting版参与讨论
1 (共1页)
c*****t
发帖数: 93
1
这次电面是个印度人,说话非常客气。
1. biggest challenge in your current project.
2. how to serialize/deserialize a binary tree.
说实话这个题确实写过,不过写deserialize的时候还是浪费了一些时间。而且有一些
corner cases没有完全考虑好。被指出了两个bug。
follow up:
how to test your methods? write sample test cases.
how to deserialize a binary tree based on network stream?
how to serialize/deserialize a tree with arbitrary number of children?
只能说发挥的一般吧。说实话希望运气能好一些。祝大家都拿到满意的offer!
p**o
发帖数: 1012
2
加油!
c*****t
发帖数: 93
3
嘿,大牛,谢谢

【在 p**o 的大作中提到】
: 加油!
M********5
发帖数: 715
4
这个how to deserialize on network stream应该怎么答?
w****a
发帖数: 710
5
BLESS 祝拿到onsite
c*****t
发帖数: 93
6
应该是用一个reader来读取stream吧。

【在 M********5 的大作中提到】
: 这个how to deserialize on network stream应该怎么答?
e***s
发帖数: 799
7
那跟在内存里读有什么区别吗?

【在 c*****t 的大作中提到】
: 应该是用一个reader来读取stream吧。
c*****t
发帖数: 93
8
不需要内存里有整个的serialized string

【在 e***s 的大作中提到】
: 那跟在内存里读有什么区别吗?
j*****y
发帖数: 1071
9
bless.
看来 serialize/deserialize 是高频题目阿

【在 c*****t 的大作中提到】
: 这次电面是个印度人,说话非常客气。
: 1. biggest challenge in your current project.
: 2. how to serialize/deserialize a binary tree.
: 说实话这个题确实写过,不过写deserialize的时候还是浪费了一些时间。而且有一些
: corner cases没有完全考虑好。被指出了两个bug。
: follow up:
: how to test your methods? write sample test cases.
: how to deserialize a binary tree based on network stream?
: how to serialize/deserialize a tree with arbitrary number of children?
: 只能说发挥的一般吧。说实话希望运气能好一些。祝大家都拿到满意的offer!

e***s
发帖数: 799
10
但是在deserialize的时候也不学要把整个string读出来啊。
也是一个char一个char地读的吧?

【在 c*****t 的大作中提到】
: 不需要内存里有整个的serialized string
相关主题
问一道算法题How to serialize and deserialize
Deserialize in-order array to a minimum height binary tree.F家phone interview的一道题
啥叫encode/decode binary tree啊?谁能给个Serialization/Deserialization of a Binary Tree Java版完整code?
进入JobHunting版参与讨论
c*****t
发帖数: 93
11
这次电面是个印度人,说话非常客气。
1. biggest challenge in your current project.
2. how to serialize/deserialize a binary tree.
说实话这个题确实写过,不过写deserialize的时候还是浪费了一些时间。而且有一些
corner cases没有完全考虑好。被指出了两个bug。
follow up:
how to test your methods? write sample test cases.
how to deserialize a binary tree based on network stream?
how to serialize/deserialize a tree with arbitrary number of children?
只能说发挥的一般吧。说实话希望运气能好一些。祝大家都拿到满意的offer!
p**o
发帖数: 1012
12
加油!
c*****t
发帖数: 93
13
嘿,大牛,谢谢

【在 p**o 的大作中提到】
: 加油!
M********5
发帖数: 715
14
这个how to deserialize on network stream应该怎么答?
w****a
发帖数: 710
15
BLESS 祝拿到onsite
c*****t
发帖数: 93
16
应该是用一个reader来读取stream吧。

【在 M********5 的大作中提到】
: 这个how to deserialize on network stream应该怎么答?
e***s
发帖数: 799
17
那跟在内存里读有什么区别吗?

【在 c*****t 的大作中提到】
: 应该是用一个reader来读取stream吧。
c*****t
发帖数: 93
18
不需要内存里有整个的serialized string

【在 e***s 的大作中提到】
: 那跟在内存里读有什么区别吗?
j*****y
发帖数: 1071
19
bless.
看来 serialize/deserialize 是高频题目阿

【在 c*****t 的大作中提到】
: 这次电面是个印度人,说话非常客气。
: 1. biggest challenge in your current project.
: 2. how to serialize/deserialize a binary tree.
: 说实话这个题确实写过,不过写deserialize的时候还是浪费了一些时间。而且有一些
: corner cases没有完全考虑好。被指出了两个bug。
: follow up:
: how to test your methods? write sample test cases.
: how to deserialize a binary tree based on network stream?
: how to serialize/deserialize a tree with arbitrary number of children?
: 只能说发挥的一般吧。说实话希望运气能好一些。祝大家都拿到满意的offer!

e***s
发帖数: 799
20
但是在deserialize的时候也不学要把整个string读出来啊。
也是一个char一个char地读的吧?

【在 c*****t 的大作中提到】
: 不需要内存里有整个的serialized string
相关主题
serialize and deserialize binary tree 这题用链表 能做吗?攒人品, Amazon电面
攒人品 tableau 昂赛 面经求个java版本的binary tree serialization和deserialization
Amazon 三次电面面筋跪求一个leetcode Amazon 分类的题目。
进入JobHunting版参与讨论
m********a
发帖数: 128
21
same question here.
How to serialize the tree if want to deserialize it as a stream?

【在 e***s 的大作中提到】
: 但是在deserialize的时候也不学要把整个string读出来啊。
: 也是一个char一个char地读的吧?

u*****o
发帖数: 1224
22
mark一下
b*******w
发帖数: 56
23

Could I think of this as original problem with a larger scale?

【在 m********a 的大作中提到】
: same question here.
: How to serialize the tree if want to deserialize it as a stream?

b*******w
发帖数: 56
24
When data is transfered by network, Serialize it by level order. When
deserializing, write it to file if no enough memory space left and
constructed tree is complete. Do this in iterative waay. In the last these
files are also organized in tree structure.
a********9
发帖数: 129
25
一定要interative么,能不能还是用recussion,只是比如说当临时储存的文件空了的
时候再读一下stream?

【在 b*******w 的大作中提到】
: When data is transfered by network, Serialize it by level order. When
: deserializing, write it to file if no enough memory space left and
: constructed tree is complete. Do this in iterative waay. In the last these
: files are also organized in tree structure.

b*******w
发帖数: 56
26
I don't know how to do it but you can try it
1 (共1页)
进入JobHunting版参与讨论
相关主题
求个java版本的binary tree serialization和deserialization如何 serialization 和deserialization hash table ?
跪求一个leetcode Amazon 分类的题目。问一道算法题
面经+求助Deserialize in-order array to a minimum height binary tree.
请教一下超大图的存储问题啥叫encode/decode binary tree啊?
Serialization/Deserialization of a Binary TreeHow to serialize and deserialize
怎样serialize binary tree 比较好?F家phone interview的一道题
serialize n-ary tree 一问谁能给个Serialization/Deserialization of a Binary Tree Java版完整code?
问道Binary tree serialization/de-serialization的题serialize and deserialize binary tree 这题用链表 能做吗?
相关话题的讨论汇总
话题: serialize话题: tree话题: stream话题: network