Post History
Japt, 8 bytes Input as an array of negabinary digit arrays, output as a negabinary digit array. xì2n)ì2n Try it or run all test cases (headers & footers convert to & from digit arrays)...
Answer
#3: Post edited
- # [Japt](https://github.com/ETHproductions/japt), 8 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
- Input as an array of negabinary digit arrays, output as a negabinary digit array.
- xì2n)ì2n
[Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&header=Tm3s&code=eOwybinsMm4&footer=Vuw&input=MTAKMTAxMQ) or [run all test cases](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&header=bew&code=eOwybinsMm4&footer=Vuw&input=W1sxLDBdLFsxLDFdLFsxLDExMF0sWzEwLDFdLFsxMCwxMDExXSxbMTAxMDEwMSwxMTEwMTAwXV0tbQ)- xì2n)ì2n :Implicit input of 2D digit array
- x :Reduce by addition after
- ì : Converting each from base
- 2n : -2
- ) :End reduce
- ì2n :Convert to base -2 digit array
- # [Japt](https://github.com/ETHproductions/japt), 8 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
- Input as an array of negabinary digit arrays, output as a negabinary digit array.
- xì2n)ì2n
- [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&header=Tm3s&code=eOwybinsMm4&footer=Vuw&input=MTAKMTAxMQ) or [run all test cases](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&header=bew&code=eOwybinsMm4&footer=Vuw&input=W1sxLDBdLFsxLDFdLFsxLDExMF0sWzEwLDFdLFsxMCwxMDExXSxbMTAxMDEwMSwxMTEwMTAwXV0tbQ) (headers & footers convert to & from digit arrays)
- xì2n)ì2n :Implicit input of 2D digit array
- x :Reduce by addition after
- ì : Converting each from base
- 2n : -2
- ) :End reduce
- ì2n :Convert to base -2 digit array
#2: Post edited
- # [Japt](https://github.com/ETHproductions/japt), 8 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
- Input as an array of negabinary digit arrays, output as a negabinary digit array.
- xì2n)ì2n
[Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&header=bew&code=eOwybinsMm4&footer=Vuw&input=WzEwLDEwMTFd) or [run all test cases](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&header=bew&code=eOwybinsMm4&footer=Vuw&input=W1sxLDBdLFsxLDFdLFsxLDExMF0sWzEwLDFdLFsxMCwxMDExXSxbMTAxMDEwMSwxMTEwMTAwXV0tbQ)
- # [Japt](https://github.com/ETHproductions/japt), 8 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
- Input as an array of negabinary digit arrays, output as a negabinary digit array.
- xì2n)ì2n
- [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&header=Tm3s&code=eOwybinsMm4&footer=Vuw&input=MTAKMTAxMQ) or [run all test cases](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&header=bew&code=eOwybinsMm4&footer=Vuw&input=W1sxLDBdLFsxLDFdLFsxLDExMF0sWzEwLDFdLFsxMCwxMDExXSxbMTAxMDEwMSwxMTEwMTAwXV0tbQ)
- xì2n)ì2n :Implicit input of 2D digit array
- x :Reduce by addition after
- ì : Converting each from base
- 2n : -2
- ) :End reduce
- ì2n :Convert to base -2 digit array
#1: Initial revision
# [Japt](https://github.com/ETHproductions/japt), 8 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1) Input as an array of negabinary digit arrays, output as a negabinary digit array. xì2n)ì2n [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&header=bew&code=eOwybinsMm4&footer=Vuw&input=WzEwLDEwMTFd) or [run all test cases](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&header=bew&code=eOwybinsMm4&footer=Vuw&input=W1sxLDBdLFsxLDFdLFsxLDExMF0sWzEwLDFdLFsxMCwxMDExXSxbMTAxMDEwMSwxMTEwMTAwXV0tbQ)