Post History
Jelly, 6 bytes ḅSbɗ-2 Try it online! Takes input and output as a pair of lists of digits. The Footer converts to and from. Jelly's generalised base conversion works for all integer bases, and...
Answer
#3: Post edited
- # [Jelly], 6 bytes
- ḅSbɗ-2
[Try it online!][TIO-kqu2kus9]- [Jelly]: https://github.com/DennisMitchell/jelly
[TIO-kqu2kus9]: https://tio.run/##y0rNyan8///hjtbgpJPTdY3@uxxuf7ij5/9/QwMw1FEwNAQxDAA "Jelly – Try It Online"Takes input and output as a pair of lists of digits. The Footer converts to and from
- # [Jelly], 6 bytes
- ḅSbɗ-2
- [Try it online!][TIO-kqu2o0v3]
- [Jelly]: https://github.com/DennisMitchell/jelly
- [TIO-kqu2o0v3]: https://tio.run/##y0rNyan8///hjtbgpJPTdY3@uxxuf7ijRzPy//9oQx2DWB0FIGUIpQwhfAOoAJA2MIQywVBHwdAQxDCIBQA "Jelly – Try It Online"
- Takes input and output as a pair of lists of digits. The Footer converts to and from.
- Jelly's generalised base conversion works for all integer bases, and allows converting from complex bases.
- ## How it works
- ḅSbɗ-2 - Main link. Takes [a, b] on the left
- ɗ-2 - Last 3 links as a dyad f([a,b], -2):
- ḅ - Convert from base -2
- S - Sum
- b - Convert to base -2
#2: Post edited
- # [Jelly], 6 bytes
- ḅSbɗ-2
- [Try it online!][TIO-kqu2kus9]
- [Jelly]: https://github.com/DennisMitchell/jelly
[TIO-kqu2kus9]: https://tio.run/##y0rNyan8///hjtbgpJPTdY3@uxxuf7ij5/9/QwMw1FEwNAQxDAA "Jelly – Try It Online"
- # [Jelly], 6 bytes
- ḅSbɗ-2
- [Try it online!][TIO-kqu2kus9]
- [Jelly]: https://github.com/DennisMitchell/jelly
- [TIO-kqu2kus9]: https://tio.run/##y0rNyan8///hjtbgpJPTdY3@uxxuf7ij5/9/QwMw1FEwNAQxDAA "Jelly – Try It Online"
- Takes input and output as a pair of lists of digits. The Footer converts to and from