1. The difficulty of the problem is its algorithm, not its code writing.
2. Usually, the pseudo code is more helpful than source code because the pseudo code usually is easier to read, understand and remember, and focus to the key, and is computer language independent, and eliminate many useless coding details, and so on.
3. For coding, my suggestion is to practice and try yourself first. If having problem, then post your problem and discuss with others on this forum. I believe that by this way you will gain much more than a piece of source code.
4. I am only another amateur. Thank you!