Question: please fix the indents in the following code /*Function to reverse a queue */ void reverse() { if (isEmpty()) return; else { int data =
please fix the indents in the following code
/*Function to reverse a queue */ void reverse() { if (isEmpty()) return; else { int data = peek(); remove(); reverse(); insert(data); } } }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
