Power of Two at Snapchat

Easy49.8% acceptance

This problem has 50.0% frequency at Snapchat.

Problem Description

Given an integer `n`, return _`true` if it is a power of two. Otherwise, return `false`_. An integer `n` is a power of two, if there exists an integer `x` such that `n == 2x`.

Read full problem and hints

Topics

Also asked at 11 companies


More Snapchat Questions

View all Snapchat questions