Skip to content

parse leetcode cpp binary tree input to TreeNode structure

Notifications You must be signed in to change notification settings

uniform641/treeparse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

# LeetCode Cpp Tree Parser
This little tool parses LeetCode C++ binary tree input into a tree structure `TreeNode` which is also defined in LeetCode, helping you to debug LeetCode problems in your local environment.

## Usage
Include "treeParser.hpp" in your program and call `int parseLeetCodeBinaryTree(std::string& rawString, TreeNode** pRoot)`.

If you would like to free the free manually, call `void cleanTreeNode(TreeNode* root)` after you finish using the tree.

About

parse leetcode cpp binary tree input to TreeNode structure

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages