Problem 60781. Express integers in negabinary
Negabinary numbers are written in base -2. For example, the negabinary number 11010 is , or 6 in base 10. In a similar way, -3 in base 10 is 1101 in negabinary.
Write a function that converts an integer to negabinary, written as a character string.
Solution Stats
Solution Comments
Show commentsProblem Recent Solvers5
Suggested Problems
-
Express integers in negabinary
5 Solvers
More from this Author291
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!