logo

Crowdly

Tekintsük az alábbi programrészletet, ahol S egy kezdetben üres verem, Q pedig ...

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

Tekintsük az alábbi programrészletet, ahol S egy kezdetben üres verem, Q pedig az

I N F O R M A T I K A

karaktereket tartalmazó sor.

Algoritmus

ciklus, amíg (head(Q) != tail(Q))

push(S, dequeue(Q))

ciklus vége

ciklus, amíg (stack-empty(S) = hamis)

enqueue(Q, pop(S))

ciklus vége

Algoritmus vége

Mit ír ki az algoritmus?

More questions like this

Want instant access to all verified answers on moodle.uni-pannon.hu?

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