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)
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
Python - measure function execution time with decorator
I have the next problem:
For example, I have a function (this is just an example to make things simple) called my_pow, that takes two arguments and return a^b, and it looks like this:
def my_pow(a, b)...
Roman Leontovych
Votes: 0
Answers: 1
Combining elements of an integer array into a single integer variable
I am writing a simple C++ program that should combine all elements of an integer array to form one number. Eg. {4,5,6} --> should be 456. But my output is one less than the original number. i.e ins...
Jimmy15
Votes: 0
Answers: 5