Trees in Competitive Programming
Introduction A tree is a nonlinear hierarchial data structure that consist of nodes connected by edges. Why Trees? Other data structures such as arrays, linked list, stack, and queue are linear data structures that store data sequentially. In order to...