Question 1: Stacks
a.) Explain the meaning of stack overflow.b.) If there are 23 elements stored in a stack. How many of themare available for use?c.) Write the statement that checks if the stack is empty. Assumethat the arrays have been used as the stack.
Question 2: Queues
Declaration of a queue using arrays is given below:
int queue [100], n = 100, front = -1 ;
Write the implementation of the insert function which insertsthe given value in the queue. The function headeris void insert (int value) ;
Question 3: Red Black Tree
a.) What are the properties of a red black tree?b.) Create a red black tree with the following elements: 2,1, 4, 5, 9, 3, 6, 7.
Question 1: Stacks a.) Explain the meaning of stack overflow. b.) If there are 23 elements stored in a stack. How many o
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am