There are missing source code for the classes TreePrint and PrintHyphens.
Could you also add them to the solution? Thanks.
Link to the problem: Solution: Flatten Binary Tree to Linked List - Grokking Coding Interview Patterns in Java
There are missing source code for the classes TreePrint and PrintHyphens.
Could you also add them to the solution? Thanks.
Link to the problem: Solution: Flatten Binary Tree to Linked List - Grokking Coding Interview Patterns in Java
Hello, @zugzug
The TreePrint and PrintHyphens are not actually part of the implementation of the solution code itself, we have intentionally placed them as hidden files. The problem statement doesn’t ask to visualize the binary tree but to construct a code to flatten the tree to a linked list.
TreePrint is there as a utility function to help you see what is happening with your tree, so that you may easily identify bugs in your solution and validate your fixes.
Happy learning!
Could it be added anyway? And also, Print.displayTree is missing.
Thanks.