-
Recent Posts
Archives
calendar
December 2025 M T W T F S S 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Categories
Meta
Tag Cloud
Category Archives: algorithm
find the closest common ancestor
void common(TreeNode<T> * t1, TreeNode<T> * t2) { if(t1 == NULL || t2 == NULL) { cout << “They have no common predecessor because of dummy nodes!” << endl; } else if(t1 == t2) { cout << “They are … Continue reading