Page 1 of 1

Spring 2022 Data Structure & Algorithm Quiz 3 Name: : Reg # Question # 1: Write a C++ code to display the middle value o

Posted: Mon May 02, 2022 12:43 pm
by answerhappygod
Spring 2022 Data Structure Algorithm Quiz 3 Name Reg Question 1 Write A C Code To Display The Middle Value O 1
Spring 2022 Data Structure Algorithm Quiz 3 Name Reg Question 1 Write A C Code To Display The Middle Value O 1 (19.58 KiB) Viewed 18 times
do these tasks in c++
dont use built in functions
only library is allowed are
#include<iostream>
using namespace std;
do both task seperately.
Spring 2022 Data Structure & Algorithm Quiz 3 Name: : Reg # Question # 1: Write a C++ code to display the middle value of Single Linked List (null terminated). 1+2+3+ 4—5 → nullptr 3 is the middle value. Question # 2: Write a C++ code to display a Single Linked List in Reverse Order. 1+2+ 3+ 4+ 5 → nullptr Output: 5,4,3,2,1