x/masx200_leetcode_test/serialize-and-deserialize-binary-tree/export.go
12345678910111213package indexfunc Serialize(root *TreeNode) string { ser := Constructor() result := ser.serialize(root) return result}func Deserialize(data string) *TreeNode { ser := Constructor() ans := ser.deserialize(data) return ans}