Given n bubbles with radii in a line, moving from left to right, a bubble bursts if its radius is greater than the one immediately to its left. Find the number of traversals needed until no more…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.