Apple Interview Question

Balance a red black tree with a loop.

Interview Answer

Anonymous

Jul 12, 2016

Used C. Wrote a struct for a linked list. Went through algorithm. Interviewer said not to implement the child node function. log(n) analysis at the end depended on how that function was implemented.