Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

** Please help me out, I\'m trying to study for my final and this question is a

ID: 3660686 • Letter: #

Question


** Please help me out, I'm trying to study for my final and this question is a practice example to prepare myself for the final **

Implement the C++ function split that splits its linked list argument, list, at position loc into two parts, part1 and part2. list has the value NULL after the call. A loc 0 means the split is before the first element, and a loc the number of elements in the list means the split is after the last element. The linked list types used are given on the first page of the exam. For full credit your function must not create or destroy any nodes. Examples: (lists shown as space separated list of values surrounded by parentheses) list loc parti. part2 (2 67 5) (675) (2) (2 67 5) (2675) (2 67 5) (26 70 (5) 100 (2 67 5) (26 75) PRE list is a well-formed linked list void split (ListType & list, int loc List Type & partl List Type & part2

Explanation / Answer

it print 1->2->3->1->2->3->1->2->3-> and so on. its a circular Link list