LeetCode Question · Dec 2022 · Los Angeles

NVIDIA | HackerRank Online Test | Minimum Step to Reduce Number to 0

35 upvotes 6,779 views 11 replies

Question Details

Description Given a positive integer n, return the minimum number of step to reduce n to 0. In one step, you can add or subtract a power of two (2^i, i...

Full Details

🔒

Unlock all NVIDIA questions

Full insider details, leaked discussions, and candidate experiences.

or every company, $100/year →

About This Question

This is a reported interview question from a nvidia interview for a swe role during the oa round reported in 2022.

It covers the following topics: Graph .

Topics