โ† Amazon questions

Minimum steps to reduce virus count to 1

Filed under Amazon

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.

Related Amazon questions

Collected from public candidate posts and coding forums. Updated Nov 2026.