Knuth's power tree: Difference between revisions

m
J: bugfix (posted version of code didn't handle 0 exponents properly)
m (J: make efficiency note better match task notation)
m (J: bugfix (posted version of code didn't handle 0 exponents properly))
Line 81:
 
<lang J>kpt=:3 :0
L=: %P=: (1+y){.10 1
for_n. 1+i.y do.
findpath=: [: |. {&P^:a:
6,962

edits