lowest common ancestor

perfect tutorials:
http://community.topcoder.com/tc?module=Static&d1=tutorials&d2=alg_index