Write a recursive version of the bubbleUp method. The parameter is the index of an element that needs to be bubbled up. You are allowed to create a private helper method if you decide that the public bubbleUp method does not contain enough parameters for recursion. Do NOT use any loop (for, while etc.) otherwise you will get 0 points.

Solved
Show answers

Ask an AI advisor a question