Search⌘ K
AI Features

Solution: Adding Two Negabinary Numbers

Solution: Adding Two Negabinary Numbers asks you to add two arrays representing base negative two numbers and return their sum in the same format without leading zeros.

Statement

You are given two numbers represented in negabinary (base −2-2). Each number is provided as an array of 00 ...