Working solutions for TopCoder