Suppose the input is:
18 30 4 32 45 36 78 19 48 75 −999
What is the output of the following C++ code? (The class unorderedLinkedList is as defined in this chapter.)
unorderedLinkedListlist;unorderedLinkedList copyList; int num;cin ≫ num;while (num != −999){if (num % 5 == 0 || num % 5 == 3) list.insertFirst(num);elselist.insertLast(num);cin ≫ num;}list.print ( );cout ≪ end1;copyList = list;copyList.deleteNode (78);copyList.deleteNode (35);cout ≪ “Copy List = ”;copyList.print ( );cout ≪ end1;
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.