Problem 2154 · Easy

Keep Multiplying Found Values by Two

Keep doubling a starting value while the doubled value is still present in the list, then report the final value. The visual lines up the numbers in a set and walks the chain of doublings.

Open the interactive visualisation