logo

Crowdly

Browser

Add to Chrome

Considere el siguiente pseudocódigo. Supongamos que IntQ es una cola de enteros....

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Considere el siguiente pseudocódigo. Supongamos que IntQ es una cola de enteros. ¿Qué hace la siguiente función?

void runQueue(int n)

{

    IntQ q = new IntQ();

    q.enqueue(0);

    q.enqueue(1);

    for (int i = 0; i < n; i++)

    {

        int a = q.dequeue();

        int b = q.dequeue();

        q.enqueue(b);

        q.enqueue(a + b);

        system.out.println(a);

    }

}

0%
0%
0%
0%
More questions like this

Want instant access to all verified answers on micampus.unal.edu.co?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome