Array
2154. Keep Multiplying Found Values by Two
Given nums and original: while original appears in nums, double it. Return the final value once it can no longer be found. Follow the chain original → 2·original → 4·original → … while each value is…
Loading…