由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - 问道Binary tree serialization/de-serialization的题
相关主题
Google第二次电面谁能给个Serialization/Deserialization of a Binary Tree Java版完整code?
如何 serialization 和deserialization hash table ?serialize n-ary tree 一问
问一道算法题serialize and deserialize binary tree 这题用链表 能做吗?
Deserialize in-order array to a minimum height binary tree.分享一个图钉面筋
How to serialize and deserialize攒人品, Amazon电面
Serialization/Deserialization of a Binary Tree啥叫encode/decode binary tree啊?
怎样serialize binary tree 比较好?求个java版本的binary tree serialization和deserialization
F家phone interview的一道题面经+求助
相关话题的讨论汇总
话题: binary话题: 问道话题: tree话题: space
进入JobHunting版参与讨论
1 (共1页)
z***b
发帖数: 127
1
http://leetcode.com/2010/09/serializationdeserialization-of-bin
leetcode 上这个答案是针对树节点的value是整数的,如果value可以是任意string,该
怎么做serialize/deserialize好呢?
说了那个preorder/inorder的,但好像不是面试官想要的答案。。
b**********5
发帖数: 7881
2
it's probably not because preorder/inorder, it's about how u deliminate the
string...

【在 z***b 的大作中提到】
: http://leetcode.com/2010/09/serializationdeserialization-of-bin
: leetcode 上这个答案是针对树节点的value是整数的,如果value可以是任意string,该
: 怎么做serialize/deserialize好呢?
: 说了那个preorder/inorder的,但好像不是面试官想要的答案。。

s********x
发帖数: 81
3
Pay attention for the space, which can be used to distinguish different
strings.
w****k
发帖数: 755
4
0

【在 s********x 的大作中提到】
: Pay attention for the space, which can be used to distinguish different
: strings.

z***b
发帖数: 127
5
说了空格,可是面试官说node 的 value string里可能含有空格啊。

【在 s********x 的大作中提到】
: Pay attention for the space, which can be used to distinguish different
: strings.

l*******i
发帖数: 57
6
turn each space in the original value string into \space
turn each \ into double \
then you can use space as the deliminator
1 (共1页)
进入JobHunting版参与讨论
相关主题
面经+求助How to serialize and deserialize
请教一下超大图的存储问题Serialization/Deserialization of a Binary Tree
刚拿到A公司的offer,呈上面经怎样serialize binary tree 比较好?
弱弱的问关于二叉树的问题F家phone interview的一道题
Google第二次电面谁能给个Serialization/Deserialization of a Binary Tree Java版完整code?
如何 serialization 和deserialization hash table ?serialize n-ary tree 一问
问一道算法题serialize and deserialize binary tree 这题用链表 能做吗?
Deserialize in-order array to a minimum height binary tree.分享一个图钉面筋
相关话题的讨论汇总
话题: binary话题: 问道话题: tree话题: space