2 questions of data structures and algorithms

multiple regression assignment 2
October 1, 2021
prepare for a whooping cough outbreak 3
October 1, 2021

2 questions of data structures and algorithms

1.Implement two stacks in one array A[1..n], such that neither stack overflows unless the total number of elements in both stacks together is n. The PUSH and POP operations should run in O(1) time.

2.Implement a θ(n) time non-recursive program that reverses a singly linked list L of n elements. The program gets the head of the list (L.head) as input and cannot use any storage other than the given list.

Code need in Java

 
Do you need a similar assignment done for you from scratch? We have qualified writers to help you. We assure you an A+ quality paper that is free from plagiarism. Order now for an Amazing Discount!
Use Discount Code "Newclient" for a 15% Discount!

NB: We do not resell papers. Upon ordering, we do an original paper exclusively for you.