Combinations Counting in Java

Back to General discussions forum

Azizbek_D     2020-10-29 09:30:25

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.

Quandray     2020-10-29 15:53:33
User avatar

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.

Please login and solve 5 problems to be able to post at forum