[Community Puzzle] Recurring Decimals

I have a (java) solution, which gives 100%, but has a serious bug in it. It can not detect the correct periods if the first two (n?) digits (other than 0) are equal.
The provided test-cases does not have such values. So the program is correct with regard to the tests, but wrong regarding the puzzle goal.

My Suggestion is to add 44 => 0.02(27) and 84 => 0.01(190476) to the test-cases.

Tests checked and added to the puzzle.

Keep coding!

1 Like

I complete the puzzle in less than 1 hour. It is good for me because I can unlock Algorithm path. But I think this puzzle shouldn’t be a very difficult one… it should be easy or medium level …