Thursday, December 14, 2017

Code review: convert to string

Dec. 14, 2017

Introduction


It is true that the peer I meet is developing new skills every day, soon or later, the peer will become very powerful programmer once the peer lands the first intern role.

Code review


The Java code written by peer has two issues, base case is missing 1 - 9, only 0 is considered in the base case. The recurrence formula is not designed properly. It should be rightmost digit stays after the recursive function's return.

Here is the code with my review.


No comments:

Post a Comment