Find the minimum number of power-of-two additions or subtractions needed to reduce n to 0.
Unlock detailed company stats for this questionUpgrade
Problem named 'System Energy Reduction'. Given an integer n (0 < n < 2^60). In one operation you can add or subtract any power of two. Find the minimum number of operations needed to reduce n to 0.
Format · Salesforce AMTS OA.
Community answers
No answers contributed by the community yet.


