Starting with an empty Priority Queue of characters named li…
Starting with an empty Priority Queue of characters named line, the following operations are performed: priority_queue line; string myGoal = “GrowOnCpp”; int i = 1; while (i < myGoal.size()) { line.push(myGoal.at(i)); i = i + 2; } What are the contents of the Priority Queue line when the above operations have completed? Mark out any Queue nodes that do not exist with an ‘X’. The front of the Priority Queue is the left-most node in the diagrams that follows (the first one that pops). Hint: lower case letters have higher ASCII code values than upper case. Front->: [Front] ->[f2]-> [f3]-> [f4]-> [f5]-> [f6]
Read Details