Frage im Vorstellungsgespräch bei Juniper Networks

Write the complete code implementation of the In-order traversal.

Antworten zu Vorstellungsgespräch

Anonym

20. Feb. 2016

public static void inporder(Node root) { if(root.left!=null) inorder(root.left); System.out.println(root.data); if(root.right!=null) inorder(root.left); }

Anonym

20. Feb. 2016

0 ▼ public static void inporder(Node root) { if(root.left!=null) inorder(root.left); System.out.println(root.data); if(root.right!=null) inorder(root.right); }