logo

Crowdly

Browser

Додати до Chrome

IS52054A: ALGORITHMS 2 (2024-25)

Шукаєте відповіді та рішення тестів для IS52054A: ALGORITHMS 2 (2024-25)? Перегляньте нашу велику колекцію перевірених відповідей для IS52054A: ALGORITHMS 2 (2024-25) в learn.gold.ac.uk.

Отримайте миттєвий доступ до точних відповідей та детальних пояснень для питань вашого курсу. Наша платформа, створена спільнотою, допомагає студентам досягати успіху!

In a singly linked-list, the instruction:

tmp->data=x
Переглянути це питання

In a singly linked-list, the instruction:

 while(tmp!=NULL)

     tmp=tmp->next
Переглянути це питання
If you implement a stack using a linked list, this pseudocode:

function g()

      if(top==NULL)

            return top->next
0%
0%
0%
0%
0%
Переглянути це питання
If you implement a stack using a linked list, this pseudocode:

function g()

     if(top!=NULL)

            top=top->data
0%
0%
0%
0%
Переглянути це питання
If you implement a queue using a linked list, this operation:

function h(x)

     newNode=new Node(x)

     tail->next=Newnode

     front->next=newNode
0%
0%
0%
0%
Переглянути це питання
What is the return value from this block of pseudocode?

  s ← new Stack()

  q ← new Queue()

  push (-101,s)

   isempty(q)

  enqueue (40,q)

  enqueue (73,q)

  peek(s)

  dequeue (q)

  pop (s)

  enqueue (83,q)

  push (83,s)

   isempty(q)

   isempty(s)

  dequeue (q)

  return peek(q)

Переглянути це питання
What is the return value from this block of pseudocode?

  q ← new Queue()

  enqueue (127,q)

  enqueue (105,q)

  peek(q)

  enqueue (78,q)

  enqueue (-35,q)

  dequeue (q)

  peek(q)

  return  isempty(q)

0%
0%
0%
0%
0%
Переглянути це питання
What is the return value from this block of pseudocode?

  q ← new Queue()

  enqueue (50,q)

  enqueue (72,q)

  dequeue (q)

  dequeue (q)

  enqueue (40,q)

  dequeue (q)

  enqueue (-48,q)

  return peek (q)

Переглянути це питання
What is the return value from this block of pseudocode?

  s ← new Stack()

  push (45,s)

  pop (s)

   isempty(s)

  push (65,s)

  pop (s)

  push (52,s)

  pop (s)

  return  isempty(s)

0%
0%
0%
0%
Переглянути це питання
What is the return value from this block of pseudocode?

  s ← new Stack()

   isempty(s)

   isempty(s)

  push (45,s)

  push (-115,s)

  peek(s)

  push (103,s)

  push (55,s)

  return peek(s)

Переглянути це питання

Хочете миттєвий доступ до всіх перевірених відповідей на learn.gold.ac.uk?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!

Browser

Додати до Chrome