I've been sent a programming problem as a preliminary step in an interview process with a game studio, and I've come across a snag where I need to balance a tree.
I figured that the random number generator and pseudo-random traversal code found in the book would be great for balancing the tree by randomly inserting elements...
Would it be okay to include this code in my solution, and if so, would I need to include any headers/redistribution READMEs, or at least a reference to the origin? I would be converting the code to C#, btw.
Also, I am really enjoying the book!
-Scott
I figured that the random number generator and pseudo-random traversal code found in the book would be great for balancing the tree by randomly inserting elements...
Would it be okay to include this code in my solution, and if so, would I need to include any headers/redistribution READMEs, or at least a reference to the origin? I would be converting the code to C#, btw.
Also, I am really enjoying the book!
-Scott