Break the problem down then. How would you do this by hand - write it out in a stepwise fashion...that's your algorithm. Then figure out how to tackle each step in code.
Type: Posts; User: copeg
Break the problem down then. How would you do this by hand - write it out in a stepwise fashion...that's your algorithm. Then figure out how to tackle each step in code.
What have you tried?