79566015

Date: 2025-04-10 07:48:19
Score: 0.5
Natty:
Report link

Here's a solution using q wrapper prior - https://code.kx.com/q/ref/prior/ along with scan iterator.

q)pt:{{(+)prior x,0}\[x;1]}
q)pt[4]
1
1 1
1 2 1
1 3 3 1
1 4 6 4 1
Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: Utsav