logo

Crowdly

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

✅ 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:

Algoritmus

ciklus, amíg (n > 0)

push(S, n % 2);

n = n / 2;

ciklus vége

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

Ki: pop(S)

ciklus vége

Algoritmus vége

Mit ír ki az algoritmus, ha n értéke 50?

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!