Loading...
Engaged Employer
Write a function to determine whether a given number is a power of 2.
Anonymous
public boolean powerOfTwo(int n){ return (n & (n-1) == 0) }
Check out your Company Bowl for anonymous work chats.
Get actionable career advice tailored to you by joining more bowls.
Stay ahead in opportunities and insider tips by following your dream companies.
Get personalized job recommendations and updates by starting your searches.