Tap here to switch tabs
Problem
Submissions

Problem: Convert to Base -2

med
30 min
Try to solve the Convert to Base -2 problem.

Statement

Given an integer n, return a binary string representing its value in base −2-2.

Constraints:

  • 0≤n≤1090 \le n \le 10^9

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Convert to Base -2

med
30 min
Try to solve the Convert to Base -2 problem.

Statement

Given an integer n, return a binary string representing its value in base −2-2.

Constraints:

  • 0≤n≤1090 \le n \le 10^9