# [Jelly], <s> 37 </s> 35 [bytes] ḤØ+ṗSÐḟÄAƑ$ƇµIHŻ⁸_Ä‘Ṭ€a"z0Ṛị“/\ ”)Ẏ A monadic Link that accepts a positive integer and returns a list of lines. **[Try it online!][TIO-mbap47gx]** #### How? ḤØ+ṗSÐḟÄAƑ$ƇµIHŻ⁸_Ä‘Ṭ€a"z0Ṛị“/\ ”)Ẏ - Link: positive integer, N ḤØ+ṗ - [-1,1] Cartisian power 2N SÐḟ - discard those with non-zero sum ÄAƑ$Ƈ - keep only those with all non-negative cumulative sums µ ) - for each UpDownSeq in that: I - deltas of UpDownSeq -> [v2-v1, v3-v2, ...] H - halve Ż - prefix with a zero ⁸_ - subtract from UpDownSeq -> UpDownSeq with zeros replacing the first of each non-leading run of equal values Ä - cumulative sums ‘ - increment (this is here to add a trailing new line to each path representation) Ṭ€ - untruth each (e.g. 3 -> [0,0,1]) a" - zipwise logical AND with UpDownSeq z0 - transpose with filler zero Ṛ - reverse ị“/\ ” - 1-index, cyclically into "/\ " Ẏ - tighten to a list of lines [Jelly]: https://github.com/DennisMitchell/jelly [bytes]: https://github.com/DennisMitchell/jelly/wiki/Code-page [TIO-mbap47gx]: https://tio.run/##AVEArv9qZWxsef//4bikw5gr4bmXU8OQ4bifw4RBxpEkxofCtUlIxbvigbhfw4TigJjhuazigqxhInow4bma4buL4oCcL1wg4oCdKeG6jv/Dh1n//zU "Jelly – Try It Online"