[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.

Hello,
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 …

1 Like

100% okay with you, some medium puzzle are harder than this one.