Question: SO, I need to write string stringlist function to impelement the code like as above. I figured out the NULL part, but do not know

 SO, I need to write string stringlist function to impelement the

SO, I need to write string stringlist function to impelement the code like as above. I figured out the "NULL" part, but do not know how to do one and more list node to print ( with string type). I would appreciate if you can help! code like as above. I figured out the "NULL" part, but do

The Problem Complete the function stringList that accepts a Node (the head of a linked list) as a parameter and creates a string out the list in the following format Node 0: 100 Node 1: 200 -Node 2: 300 If the list is empty then the function should return "Empty list". Testing Your Code This time we do not provide you with local test cases. You should write your own test cases. In main.cpp, you should test your stringList in, at least, the following cases: An empty list A list with exactly one node .A list with more than one node (eg: 100 ->200->300, as shown above) We will not be checking your main function

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!