Data structure & algorithm problems