Back to General discussions forum
I worked on the Combinations Counting problem in the Java programming language. The Jetbrains Intellij Idea example works well. But if I drop my answer on the site it gives an error:" / by zero ". In fact, there is no such mistake.
I suspect that you are not testing your code with large numbers. It says "Note: results would be small enough for storing in 64-bit integers" but I don't think your code handles 64 bit integers.