Given a number of viruses between 1 and 10^18, find the minimum steps to reach 1. Allowed operations: add 1, subtract 1, or divide by 2 if the count is even.
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.