Search⌘ K
AI Features

Adding Two Negabinary Numbers

Adding Two Negabinary Numbers gives you two arrays of bits representing values in base negative two. Compute their sum and return it as a negabinary array without leading zeros.

Statement

You are given two numbers represented in negabinary (base ...