Tree from nesting levels: Difference between revisions

m
Line 1,053:
|syntax error</lang>
 
On a related note, there are type issues to consider -- in J's type system, a box (which is what we would use here to represent a tree node) cannot exist in a tuple with an integer. A box can, however, contain an integer. This makes a literal interpretation of the task somewhat... difficult. We might, hypothetically, say that we are working with boxes containing integers and that it's these boxes which must achieve a specific nesting level.
 
Anyways, here's an interpretation which might be close enough to the task description:
6,962

edits