# [Jelly], 11 bytes ’Ø-ṗÄS=¥ƇḢŻ [Try it online!][TIO-khykmiu3] [Jelly]: https://github.com/DennisMitchell/jelly [TIO-khykmiu3]: https://tio.run/##y0rNyan8//9Rw8zDM3Qf7px@uCXY9tDSY@0Pdyw6uvv/4eX63iqPmtZE/v8fbaFjEqsTbaxjCiQtgWwA "Jelly – Try It Online" Although I originally had `’2*ḶBz0Z-*ÄS=¥ƇḢŻ`, this is close enough to caird's solution in principle now that I'm almost tempted to just suggest it in the comments. In the case that you really really want `[]` over `0`, [maybe it's just +3 bytes?](https://tio.run/##AS8A0P9qZWxsef//4oCZw5gt4bmXw4RTPcKlxofhuKLFu@G5luG5lj//w6fhuZj//zP/NQ), [maybe it's +5](https://tio.run/##AS8A0P9qZWxsef//4oCZw5gt4bmXw4RTPcKlxofhuKLFu@G5luG5lj/FkuG5mP///zP/NQ). ``` Ø- [-1, 1] ṗ to the Cartesian power of ’ n - 1. Ä Cumulative sums. Ƈ Keep only those for which S ¥ the sum = is equal to s. Ḣ Take the first survivor Ż and slap a 0 on the start of it.