✏️ Explanatory Question
[Computational Complexity and Big-O Notation]
Consider the following snippet, calculate the time complexity:
double m = 1, n = 1;
for(int i = 0; i < x; i++)
{
m *= Math.random();
}
for(int j = 0; j < y; j++)
{
n *= Math.random();
}
Consider the following snippet, calculate the time complexity: