← Cisco questions

Check if a number is a power of 2

Filed under Cisco · Also reported at Atonarp, GE Digital, JPMorgan Chase, NXP, Radisys, Salesforce

Determine if a given integer n is a power of 2.

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 Cisco questions

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