A very useful site to test your logical skills. This is a complete set of solution of CodingBat in java.