MCPcopy Create free account
hub / github.com/bwiens/leetcode-python / serialize

Method serialize

serialize_and_deserialize_binary_tree.py:10–31  ·  view source on GitHub ↗

Encodes a tree to a single string. :type root: TreeNode :rtype: str

(self, root)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

popMethod · 0.45

Tested by

no test coverage detected