Post History
JavaScript (Node.js), 60 bytes f=([x,...r],y)=>x?[0,...y=f(r)].map((v,i)=>v-x*(y[i]|0)):[1] Try it online!
Answer
#2: Post edited
# [JavaScript (Node.js)], 58 bytes- ```
([x,...r],y)=>x?[0,...y=f(r)].map((v,i)=>v-x*(y[i]|0)):[1]- ```
- [Try it online!][TIO-ktkkeegh]
- [JavaScript (Node.js)]: https://nodejs.org
[TIO-ktkkeegh]: https://tio.run/##RYxBCoMwFETX5hR/0UVSYrDtrhJ7kPBBsaZYrJEkiGI9e2qQ4maY9wbmXY2Vq207@LQ3zyZoGaiauBDCIp@ZLKaHyiLOUlPLUHyqgdKRt9s0ptOZzqrFb8bYXV0w1KZ3HnzjvAMJiiQK@RaXPTlc/@UwHG5IMCdEGwv0OACj9yMGC0miN10jOvOipTotcVkR0gI20DQiW7FkOVnDDw "JavaScript (Node.js) – Try It Online"
- # [JavaScript (Node.js)], 60 bytes
- ```
- f=([x,...r],y)=>x?[0,...y=f(r)].map((v,i)=>v-x*(y[i]|0)):[1]
- ```
- [Try it online!][TIO-ktkkeegh]
- [JavaScript (Node.js)]: https://nodejs.org
- [TIO-ktkkeegh]: https://tio.run/##RYxBCoMwFETX5hR/0UVSYrDtrhJ7kPBBsaZYrJEkiGI9e2qQ4maY9wbmXY2Vq207@LQ3zyYELamauBDCIp@ZLKaHyiLOUlPLUHyqgdKRt9s0ptOZzqrFb8bYXV0w1KZ3HnzjvAMJiiQK@RaXPTlc/@UwHG5IMCdEGwv0OACj9yMGC0miN10jOvOipTotcVkR0gI20DQiW7FkOVnDDw
#1: Initial revision
# [JavaScript (Node.js)], 58 bytes ``` ([x,...r],y)=>x?[0,...y=f(r)].map((v,i)=>v-x*(y[i]|0)):[1] ``` [Try it online!][TIO-ktkkeegh] [JavaScript (Node.js)]: https://nodejs.org [TIO-ktkkeegh]: https://tio.run/##RYxBCoMwFETX5hR/0UVSYrDtrhJ7kPBBsaZYrJEkiGI9e2qQ4maY9wbmXY2Vq207@LQ3zyZoGaiauBDCIp@ZLKaHyiLOUlPLUHyqgdKRt9s0ptOZzqrFb8bYXV0w1KZ3HnzjvAMJiiQK@RaXPTlc/@UwHG5IMCdEGwv0OACj9yMGC0miN10jOvOipTotcVkR0gI20DQiW7FkOVnDDw "JavaScript (Node.js) – Try It Online"