On Wed, Sep 2, 2009 at 11:29 AM, Roger Hui<[email protected]> wrote:
> Have you tested it on a tree with a 2e5 (say) nodes?
I had not done so.
It turns out ;@:{L:0 1~ is significantly slower
than 3 : '(*c) #^:_1 (I.c) <@;/. (;y){y [ c=. #&> y'
That said, I currently am not inclined to replace
the shorter expression with the more elaborate
expression, at rosetta code.
--
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm