Skip to content Skip to sidebar Skip to footer
Showing posts with the label Modulo

Why Modular Exponentiation Functions Work Differently In Python And Javascript For Large Numbers?

I need to perform modular exponentiation on quite large numbers on both python3 and javascript. I h… Read more Why Modular Exponentiation Functions Work Differently In Python And Javascript For Large Numbers?

Accessing An Element Of An Array Through Negative Indexes

I want to access contents of an array by arbitrary indexes. Lets say we have an array with three el… Read more Accessing An Element Of An Array Through Negative Indexes

Other Ways Of Performing Modulo Operation

Some time ago I've seen somewhere a trick to perform modulo operation using bit operators. But … Read more Other Ways Of Performing Modulo Operation