python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
What is the best way, more straight-forward, way to calculate a modulus operation?
I'm currently learning Java and JavaScript (alongside HTML and CSS).
I've been struggling with logical and arithmetic operations for a long time as I've never been good at maths in school. My question...

Brieuc H.
Votes: 0
Answers: 1
Modulo of factorial divided by factorial
How to calculate a!/(b1! b2! ... bm!) modulo p, where p is a prime number? The factorial of a and b can be very big (long long int is not sufficient) so I need to pass to modulo.
Farah Mind
Votes: 0
Answers: 2
How to create a hashing function which buckets an array of integers into random buckets?
So I am doing something part theoretical and part practical, trying to find the balance of what is realistic. Currently I am thinking about a situation where we have 3 properties which specify a table...

Lance
Votes: 0
Answers: 0
Why doesn't x**y%z work like pow(x, y, z) if y is negative?
I have these values for x, y and z:
x = 1402709587326125487755933770599785022011554878478352915458023572822263891029946822919389113025226898265
y = -165315017260956059588958700827102552010086867429006...
Gerald
Votes: 0
Answers: 1