How to convert thread-unsafe code into thread-safe code? Code??
How to convert a binary tree into binary search tree keeping the structure of tree intact?