You are viewing a single comment's thread. Return to all comments →
JavaScript:
function inOrder(root) { let answer = ''; function process(node) { if(node!=null) { process(node.left); answer += `${node.data} `; process(node.right); } } process(root); console.log(answer); }
Seems like cookies are disabled on this browser, please enable them to open this website
Tree: Inorder Traversal
You are viewing a single comment's thread. Return to all comments →
JavaScript: