Revisions to Finding the nth ugly number - Code Review Stack...
On the other hand, this template is given on theLeetCode submission template, so you are not free to change it. What you can do is to make the required solution method a wrapper for a free function (which then i