java icon indicating copy to clipboard operation
java copied to clipboard

Collatz Conjecture: Test case should be added to check for more than one method call

Open Mauricio-MdS opened this issue 1 year ago • 0 comments

A possible solution to this exercise would be to use recursion. However, a likely error in using recursion would be to place the steps as a field instead of a local variable of the method. This way, the steps would possibly not be reset on each new method call. There is no test case for this mistake.

Mauricio-MdS avatar Apr 10 '24 14:04 Mauricio-MdS