assignment 3 for Algorithms pt I, COURSERA. skills: JAva