Convert to Base -2 at Airbnb

Medium61.8% acceptance

This problem has 75.0% frequency at Airbnb.

Problem Description

Given an integer `n`, return _a binary string representing its representation in base_ `-2`. **Note** that the returned string should not have leading zeros unless the string is `"0"`.

Read full problem and hints

Topics

Also asked at 1 company


More Airbnb Questions

View all Airbnb questions