Available question text
Convert a nonnegative integer n (0 ≤ n ≤ 10^9) into its base -2 (negabinary) representation as a binary string with no leading zeros (except "0"). The core challenge is computing digits for a negative base, i.e., repeatedly dividing and adjusting remainders so each digit is 0 or 1.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 1017. Convert to Base -2
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source