Cringiest solution || 0ms || 100% Faster solution || using static
\npublic class Codec {\n    static TreeNode node;\n    // Encodes a tree to a single string.\n    public String serialize(TreeNode root) {\n        node = root;
```\npublic class Codec {\n    static TreeNode node;\n    // Encodes a tree to a single string.\n    public String serialize(TreeNode root) {\n        node = root;\n        return "";\n    }\n\n    // Decodes your encoded data to tree.\n    public TreeNode deserialize(String data) {\n        return node;\n    }\n}\n\n```
['Java']