Answer:
computer programming
Explanation:
says the answer in the question
Answer:
Explanation:
public void rotate()
{
if(front == null)
return;
ListNode current = front;
ListNode firstNode = current;
while(current.next != null)
{
current = current.next;
}
current.next = front;
front = firstNode.next;
firstNode.next = null;
}
Imformation goes into a computer through wires and comes out through data/gigabites. Or when you print it.
Answer:
Yes it is possible for the following cases:-
- When the queue is full.
- When the queue is empty.
Explanation:
When the queue is full the the front and the rear references in the circular array implementation are equal because after inserting an element in the queue we increase the rear pointer.So when inserting the last element the rear pointer will be increased and it will become equal to front pointer.
When the queue is empty the front and rear pointer are equal.We remove an element from queue by deleting the element at front pointer decreasing the front pointer when there is only one element and we are deleting that element front and rear pointer will become equal after deleting that element.